Changeset 573 for trunk


Ignore:
Timestamp:
07/27/11 13:30:58 (10 months ago)
Author:
ddangelo
Message:

Typedef for boost threads added. Needed to be compliant with boost > 1.40

Location:
trunk/avango-daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-daemon/include/avango/daemon/Device.h

    r1 r573  
    2929#include <map> 
    3030#include <boost/shared_ptr.hpp> 
    31 #include <boost/thread/thread.hpp> 
    3231#include <avango/Base.h> 
    3332#include <avango/daemon/Station.h> 
     33 
     34#if BOOST_VERSION > 104000 
     35#include <boost/thread.hpp> 
     36namespace av 
     37{ 
     38typedef ::boost::thread Thread; 
     39} 
     40#else 
     41#include <boost/thread/thread.hpp> 
     42namespace av 
     43{ 
     44  typedef ::boost::thread Thread; 
     45} 
     46#endif 
    3447 
    3548/** 
     
    162175      const std::string mEmptyFeature; 
    163176 
    164       ::boost::shared_ptr< ::boost::thread::thread> mThread; 
     177      ::boost::shared_ptr< av::Thread > mThread; 
    165178      bool mRunning; 
    166179    }; 
  • trunk/avango-daemon/src/avango/daemon/Device.cpp

    r1 r573  
    6969  startDevice(); 
    7070  mKeepRunning = true; 
    71   mThread.reset(new boost::thread::thread(boost::bind(&av::daemon::Device::threadFunction, this))); 
     71  mThread.reset(new Thread(boost::bind(&av::daemon::Device::threadFunction, this))); 
    7272  mRunning = true; 
    7373  return true; 
Note: See TracChangeset for help on using the changeset viewer.