Changeset 9991 for source/ariba/utility/transport/tcpip/protlib/threads.h
- Timestamp:
- Jul 28, 2011, 2:03:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/transport/tcpip/protlib/threads.h
r9686 r9991 71 71 template <class T> void *thread_starter(void *thread_object) { 72 72 73 #ifdef PTHREAD_CANCEL_ENABLE 73 74 pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); 75 #endif 76 #ifdef PTHREAD_CANCEL_DEFERRED 74 77 pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL); 78 #endif 75 79 76 80 (static_cast<T*>(thread_object))->start_processing(); … … 537 541 thread_object.unlock(); 538 542 if (kill) { 543 544 #ifdef PTHREAD_CANCEL_ENABLE 539 545 for (unsigned i = 0; i < pthreads.size(); i++) 540 546 pthread_cancel( pthreads[i] ); 541 547 542 548 sleepuntilstop(); 549 #endif 543 550 544 551 for (unsigned i = 0; i < pthreads.size(); i++)
Note:
See TracChangeset
for help on using the changeset viewer.