35 #ifndef _TclThreadManager_H__ 36 #define _TclThreadManager_H__ 63 static unsigned int create();
64 static Tcl::interpreter* createWithId(
unsigned int id);
65 static void destroy(
unsigned int id);
73 void preUpdate(
const Clock& time);
75 std::list<unsigned int> getThreadList()
const;
78 static void tcl_execute(
const Tcl::object& args);
79 static void tcl_crossexecute(
int target_id,
const Tcl::object& args);
80 static std::string tcl_query(
int source_id,
const Tcl::object& args);
81 static std::string tcl_crossquery(
int source_id,
int target_id,
const Tcl::object& args);
82 static bool tcl_running(
int id);
88 std::string dumpList(
const std::list<unsigned int>& list);
void tclThread(TclInterpreterBundle *bundle, const std::string &command)
The main function of the thread.
Definition: TclThreadManager.cc:608
void source(const std::string &filename)
Reads the content of a file and executes the commands in it line by line.
Definition: ConsoleCommandCompilation.cc:167
void error(const std::string &text)
Prints output with error level.
Definition: ConsoleCommandCompilation.cc:145
void debug(const std::string &text)
Prints debug output with verbose level.
Definition: ConsoleCommandCompilation.cc:161
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
std::map< unsigned int, TclInterpreterBundle * > interpreterBundles_
A map containing all Tcl-interpreters.
Definition: TclThreadManager.h:96
boost::mutex * mainInterpreterMutex_
A mutex to synchronize queries to the main interpreter.
Definition: TclThreadManager.h:99
The MetaPickup destroys all the PickupCarriers' Pickupables.
int Tcl_OrxonoxAppInit(Tcl_Interp *interp)
A tcl-init hook to inject the non-interactive Tcl-interpreter into the TclThreadManager.
Definition: TclThreadManager.cc:647
unsigned int numInterpreterBundles_
Number of created Tcl-interpreters (only used for auto-numbered interpreters, not affected by createW...
Definition: TclThreadManager.h:95
static TclThreadManager * singletonPtr_s
Singleton pointer.
Definition: TclThreadManager.h:93
Base for singleton classes.
Definition: Singleton.h:114
A wrapper class for a Tcl interpreter.
Definition: TclBind.h:98
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION_MULTI() command(const std::string &fragment)
Returns a list of commands and groups and also supports auto-completion of the arguments of these com...
Definition: ArgumentCompletionFunctions.cc:178
#define _CoreExport
Definition: CorePrereqs.h:61
TclThreadList< std::string > * messageQueue_
A queue to pass messages from Tcl-threads to the main thread.
Definition: TclThreadManager.h:98
void sourceThread(const std::string &file)
The main function of a non-interactive source thread.
Definition: TclThreadManager.cc:621
Definition of the Singleton template that is used as base class for classes that allow only one insta...
Simple real time clock based on Ogre::Timer.
Definition: Clock.h:57
Definition: TclThreadManager.h:51
boost::shared_mutex * interpreterBundlesMutex_
A mutex used to synchronize threads when accessing interpreterBundles_.
Definition: TclThreadManager.h:97
A struct containing all information about a Tcl-interpreter.
Definition: TclThreadManager.cc:66