Changeset 7449 in vbox for trunk/src/VBox/Additions/x11/xclient/thread.cpp
- Timestamp:
- Mar 14, 2008 6:12:27 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28887
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/xclient/thread.cpp
r6897 r7449 16 16 */ 17 17 18 #include <VBox/log.h> 18 19 #include <iostream> /* For std::exception */ 19 20 … … 25 26 int rc = VINF_SUCCESS; 26 27 28 LogFlowThisFunc(("\n")); 27 29 if (NIL_RTTHREAD == mSelf) /* Assertion */ 28 30 { … … 44 46 } 45 47 } 48 LogFlowThisFunc(("returning %Rrc\n", rc)); 46 49 return rc; 47 50 } … … 50 53 VBoxGuestThread::~VBoxGuestThread(void) 51 54 { 55 LogFlowThisFunc(("\n")); 52 56 if (NIL_RTTHREAD != mSelf) 53 57 { … … 59 63 catch(...) {} 60 64 } 65 LogFlowThisFunc(("returning\n")); 61 66 } 62 67 … … 64 69 int VBoxGuestThread::start(void) 65 70 { 71 int rc = VINF_SUCCESS; 72 73 LogFlowThisFunc(("returning\n")); 66 74 if (NIL_RTTHREAD != mSelf) /* Assertion */ 67 75 { … … 70 78 } 71 79 mExit = false; 72 r eturnRTThreadCreate(&mSelf, threadFunction, reinterpret_cast<void *>(this),80 rc = RTThreadCreate(&mSelf, threadFunction, reinterpret_cast<void *>(this), 73 81 mStack, mType, mFlags, mName); 82 LogFlowThisFunc(("returning %Rrc\n", rc)); 83 return rc; 74 84 } 75 85 … … 84 94 { 85 95 int rc = VINF_SUCCESS; 96 97 LogFlowFunc(("\n")); 86 98 PSELF pSelf = reinterpret_cast<PSELF>(pvUser); 87 99 pSelf->mRunning = true; … … 101 113 } 102 114 pSelf->mRunning = false; 115 LogFlowFunc(("returning %Rrc\n", rc)); 103 116 return rc; 104 117 }
Note:
See TracChangeset
for help on using the changeset viewer.