Changeset f7f536b in nscp for trunk/include/thread.h
- Timestamp:
- 02/25/05 21:47:45 (8 years ago)
- Children:
- cab471b
- Parents:
- 107bd0f
- File:
-
- 1 edited
-
trunk/include/thread.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/thread.h
r05bfaf2 rf7f536b 158 158 /** 159 159 * Ask the thread to terminate (within 5 seconds) if not return false. 160 * @param delay The time to wait for the thread 160 161 * @return true if the thread has terminated 161 162 */ 162 bool exitThread( ) {163 bool exitThread(const unsigned int delay = 5000L) { 163 164 if (!pObject_) 164 165 throw "Could not terminate thread, has not been started yet..."; 165 166 pObject_->exitThread(); 166 DWORD dwWaitResult = endMutext.wait( 5000L);167 DWORD dwWaitResult = endMutext.wait(delay); 167 168 switch (dwWaitResult) { 168 169 // The thread got mutex ownership.
Note: See TracChangeset
for help on using the changeset viewer.








