Changeset 36807 in vbox
- Timestamp:
- Apr 21, 2011 10:42:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/thread.cpp
r33595 r36807 17 17 18 18 #include <VBox/log.h> 19 #include <iostream> /* For std::exception */20 19 21 20 #include "thread.h" … … 98 97 PSELF pSelf = reinterpret_cast<PSELF>(pvUser); 99 98 pSelf->mRunning = true; 100 try 101 { 102 rc = pSelf->mFunction->threadFunction(pSelf); 103 } 104 catch (const std::exception &e) 105 { 106 LogRelFunc(("Caught exception in thread: %s\n", e.what())); 107 rc = VERR_UNRESOLVED_ERROR; 108 } 109 catch (...) 110 { 111 LogRelFunc(("Caught unknown exception in thread.\n")); 112 rc = VERR_UNRESOLVED_ERROR; 113 } 99 rc = pSelf->mFunction->threadFunction(pSelf); 114 100 pSelf->mRunning = false; 115 101 LogRelFlowFunc(("returning %Rrc\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.