Changeset f7f536b in nscp for trunk/include/thread.h


Ignore:
Timestamp:
02/25/05 21:47:45 (8 years ago)
Author:
Michael Medin <michael@…>
Children:
cab471b
Parents:
107bd0f
Message:

Multiple fixes in various places.

  • Added threadding blocks "core"
  • Added new Module (CheckDisk)
  • Added new option [log] / debug=1 to enable debug logs.
  • Added more error messages
  • other minor tweaks and fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/thread.h

    r05bfaf2 rf7f536b  
    158158  /** 
    159159   * Ask the thread to terminate (within 5 seconds) if not return false. 
     160   * @param delay The time to wait for the thread 
    160161   * @return true if the thread has terminated 
    161162   */ 
    162   bool exitThread() { 
     163  bool exitThread(const unsigned int delay = 5000L) { 
    163164    if (!pObject_) 
    164165      throw "Could not terminate thread, has not been started yet..."; 
    165166    pObject_->exitThread(); 
    166     DWORD dwWaitResult = endMutext.wait(5000L); 
     167    DWORD dwWaitResult = endMutext.wait(delay); 
    167168    switch (dwWaitResult) { 
    168169      // The thread got mutex ownership. 
Note: See TracChangeset for help on using the changeset viewer.