Parent Directory | Revision Log | Patch
revision 350 by schoenebeck, Tue May 4 18:52:24 2004 UTC | revision 351 by schoenebeck, Tue Jan 25 22:11:43 2005 UTC | |
---|---|---|
# | Line 98 int Thread::StopThread() { | Line 98 int Thread::StopThread() { |
98 | if (Running) { | if (Running) { |
99 | SignalStopThread(); | SignalStopThread(); |
100 | pthread_cond_wait(&__thread_exit_condition, &__thread_state_mutex); | pthread_cond_wait(&__thread_exit_condition, &__thread_state_mutex); |
101 | pthread_detach(__thread_id); | |
102 | } | } |
103 | pthread_mutex_unlock(&__thread_state_mutex); | pthread_mutex_unlock(&__thread_state_mutex); |
104 | return 0; | return 0; |
|
ViewVC Help | |
Powered by ViewVC |