Changeset 7365 for code/branches/doc/src/libraries/core/command
- Timestamp:
- Sep 6, 2010, 2:35:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/command/TclThreadManager.cc
r7361 r7365 256 256 void TclThreadManager::initialize(TclInterpreterBundle* bundle) 257 257 { 258 const std::string& id_string = getConvertedValue<unsigned int,std::string>(bundle->id_);258 const std::string& id_string = multi_cast<std::string>(bundle->id_); 259 259 260 260 // Initialize the new interpreter … … 408 408 { 409 409 // This query would lead to a deadlock - return with an error 410 TclThreadManager::error("Error: Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + getConvertedValue<unsigned int,std::string>(source_bundle->id_) \411 + " -> " + getConvertedValue<unsigned int,std::string>(target_bundle->id_) \412 + "), couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int,std::string>(target_bundle->id_) \413 + " from other interpreter with ID " + getConvertedValue<unsigned int,std::string>(source_bundle->id_) + '.');410 TclThreadManager::error("Error: Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + multi_cast<std::string>(source_bundle->id_) \ 411 + " -> " + multi_cast<std::string>(target_bundle->id_) \ 412 + "), couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) \ 413 + " from other interpreter with ID " + multi_cast<std::string>(source_bundle->id_) + '.'); 414 414 } 415 415 else … … 477 477 // This happens if the main thread tries to query a busy interpreter 478 478 // To avoid a lock of the main thread, we simply don't proceed with the query in this case 479 TclThreadManager::error("Error: Couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int,std::string>(target_bundle->id_) + ", interpreter is busy right now.");479 TclThreadManager::error("Error: Couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) + ", interpreter is busy right now."); 480 480 } 481 481 } … … 523 523 else 524 524 { 525 TclThreadManager::error("Error: No Tcl-interpreter with ID " + getConvertedValue<unsigned int,std::string>(id) + " existing.");525 TclThreadManager::error("Error: No Tcl-interpreter with ID " + multi_cast<std::string>(id) + " existing."); 526 526 return 0; 527 527 } … … 539 539 output += ' '; 540 540 541 output += getConvertedValue<unsigned int,std::string>(*it);541 output += multi_cast<std::string>(*it); 542 542 } 543 543 return output; … … 591 591 if (cc != TCL_OK) 592 592 { 593 TclThreadManager::error("Tcl error (" + action + ", ID " + getConvertedValue<unsigned int,std::string>(bundle->id_) + "): " + static_cast<std::string>(result));593 TclThreadManager::error("Tcl error (" + action + ", ID " + multi_cast<std::string>(bundle->id_) + "): " + static_cast<std::string>(result)); 594 594 return ""; 595 595 }
Note: See TracChangeset
for help on using the changeset viewer.