Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2009, 6:23:31 PM (15 years ago)
Author:
rgrieder
Message:

Merged netp6 branch back to the trunk.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/core/TclThreadManager.h

    r3196 r3304  
    3232#include "CorePrereqs.h"
    3333
     34#include <cassert>
    3435#include <list>
    3536#include <map>
    3637#include <string>
    37 #include <boost/thread/condition.hpp>
    38 #include <boost/thread/mutex.hpp>
    39 #include <boost/thread/thread.hpp>
    40 
    4138#include "core/OrxonoxClass.h"
    4239
    4340namespace orxonox
    4441{
    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     };
     42    // Internal struct
     43    struct TclInterpreterBundle;
    6644
    6745    class _CoreExport TclThreadManager : public OrxonoxClass
     
    10179
    10280            Tcl::interpreter* createNewTclInterpreter(const std::string& threadID);
     81            Tcl::interpreter* getTclInterpreter(unsigned int threadID);
    10382            TclInterpreterBundle* getInterpreterBundle(unsigned int threadID);
    10483            std::string dumpList(const std::list<unsigned int>& list);
     
    11998
    12099            unsigned int threadCounter_;
    121             TclInterpreterBundle orxonoxInterpreterBundle_;
     100            TclInterpreterBundle* orxonoxInterpreterBundle_;
    122101            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
    131102
    132103            static TclThreadManager* singletonRef_s;
Note: See TracChangeset for help on using the changeset viewer.