Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 1, 2009, 11:22:03 AM (15 years ago)
Author:
rgrieder
Message:

Moved boost headers from TclThreadmanager.h to the source file.
Also removed the old boost 1.34 commands since Oli requires 1.35 anyway and there have been about three or four new releases of boost since the writing of the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp6/src/core/TclThreadManager.h

    r3196 r3264  
    3535#include <map>
    3636#include <string>
    37 #include <boost/thread/condition.hpp>
    38 #include <boost/thread/mutex.hpp>
    39 #include <boost/thread/thread.hpp>
    40 
    4137#include "core/OrxonoxClass.h"
    4238
    4339namespace orxonox
    4440{
    45     struct _CoreExport TclInterpreterBundle
    46     {
    47         unsigned int id_;
    48 
    49         std::list<std::string> queue_;
    50         boost::mutex queueMutex_;
    51 
    52         Tcl::interpreter* interpreter_;
    53         std::string interpreterName_;
    54         boost::try_mutex interpreterMutex_;
    55 
    56         std::list<unsigned int> queriers_;
    57         boost::mutex queriersMutex_;
    58 
    59         bool running_;
    60         boost::mutex runningMutex_;
    61 
    62         bool finished_;
    63         boost::mutex finishedMutex_;
    64         boost::condition finishedCondition_;
    65     };
     41    // Internal struct
     42    struct TclInterpreterBundle;
    6643
    6744    class _CoreExport TclThreadManager : public OrxonoxClass
     
    10178
    10279            Tcl::interpreter* createNewTclInterpreter(const std::string& threadID);
     80            Tcl::interpreter* getTclInterpreter(unsigned int threadID);
    10381            TclInterpreterBundle* getInterpreterBundle(unsigned int threadID);
    10482            std::string dumpList(const std::list<unsigned int>& list);
     
    11997
    12098            unsigned int threadCounter_;
    121             TclInterpreterBundle orxonoxInterpreterBundle_;
     99            TclInterpreterBundle* orxonoxInterpreterBundle_;
    122100            std::map<unsigned int, TclInterpreterBundle*> interpreterBundles_;
    123             boost::mutex bundlesMutex_;
    124             boost::condition fullQueueCondition_;
    125             boost::condition orxonoxEvalCondition_;
    126 #if (BOOST_VERSION >= 103500)
    127             boost::thread::id threadID_;
    128 #else
    129             boost::thread threadID_;
    130 #endif
    131101
    132102            static TclThreadManager* singletonRef_s;
Note: See TracChangeset for help on using the changeset viewer.