Changeset 1747 for code/trunk/src/core/TclThreadManager.cc
- Timestamp:
- Sep 9, 2008, 4:25:52 AM (17 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core3 (added) merged: 1573-1574,1583-1586,1591-1594,1596-1597,1603,1606-1607,1610-1611,1655,1658,1676-1679,1681-1685,1687,1716-1723,1725-1729,1736
- Property svn:mergeinfo changed
-
code/trunk/src/core/TclThreadManager.cc
r1505 r1747 38 38 #include "ConsoleCommand.h" 39 39 #include "CommandExecutor.h" 40 #include "Debug.h"41 40 #include "TclBind.h" 42 41 #include "TclThreadManager.h" 42 #include "util/Debug.h" 43 43 #include "util/Convert.h" 44 44 … … 48 48 namespace orxonox 49 49 { 50 SetConsoleCommandShortcut Generic(tclexecute, createConsoleCommand(createFunctor(&TclThreadManager::execute), "tclexecute")).setArgumentCompleter(0, autocompletion::tclthreads());51 SetConsoleCommandShortcut Generic(tclquery, createConsoleCommand(createFunctor(&TclThreadManager::query), "tclquery" )).setArgumentCompleter(0, autocompletion::tclthreads());50 SetConsoleCommandShortcutAlias(TclThreadManager, execute, "tclexecute").argumentCompleter(0, autocompletion::tclthreads()); 51 SetConsoleCommandShortcutAlias(TclThreadManager, query, "tclquery" ).argumentCompleter(0, autocompletion::tclthreads()); 52 52 SetConsoleCommand(TclThreadManager, create, false); 53 SetConsoleCommand(TclThreadManager, destroy, false). setArgumentCompleter(0, autocompletion::tclthreads());54 SetConsoleCommand(TclThreadManager, execute, false). setArgumentCompleter(0, autocompletion::tclthreads());55 SetConsoleCommand(TclThreadManager, query, false). setArgumentCompleter(0, autocompletion::tclthreads());53 SetConsoleCommand(TclThreadManager, destroy, false).argumentCompleter(0, autocompletion::tclthreads()); 54 SetConsoleCommand(TclThreadManager, execute, false).argumentCompleter(0, autocompletion::tclthreads()); 55 SetConsoleCommand(TclThreadManager, query, false).argumentCompleter(0, autocompletion::tclthreads()); 56 56 SetConsoleCommand(TclThreadManager, status, false); 57 SetConsoleCommand(TclThreadManager, dump, false).setArgumentCompleter(0, autocompletion::tclthreads()); 58 SetConsoleCommand(TclThreadManager, flush, false).setArgumentCompleter(0, autocompletion::tclthreads()); 59 60 TclThreadManager* instance_tclthreadmanager = &TclThreadManager::getInstance(); 57 SetConsoleCommand(TclThreadManager, dump, false).argumentCompleter(0, autocompletion::tclthreads()); 58 SetConsoleCommand(TclThreadManager, flush, false).argumentCompleter(0, autocompletion::tclthreads()); 61 59 62 60 TclThreadManager::TclThreadManager() … … 72 70 // 73 71 #endif 72 } 73 74 TclThreadManager::~TclThreadManager() 75 { 76 unsigned int threadID; 77 { 78 boost::mutex::scoped_lock bundles_lock(this->bundlesMutex_); 79 if (this->interpreterBundles_.begin() == this->interpreterBundles_.end()) 80 return; 81 else 82 threadID = this->interpreterBundles_.begin()->first; 83 } 84 this->destroy(threadID); 74 85 } 75 86 … … 508 519 509 520 if (CommandExecutor::getLastEvaluation().hasReturnvalue()) 510 output = CommandExecutor::getLastEvaluation().getReturnvalue(). toString();521 output = CommandExecutor::getLastEvaluation().getReturnvalue().getString(); 511 522 } 512 523
Note: See TracChangeset
for help on using the changeset viewer.