| 102 | } |
| 103 | |
| 104 | bool Thread::join() |
| 105 | { |
| 106 | if(!isAlive()) |
| 107 | return true; |
| 108 | |
| 109 | // not using pthread_join here because pthread_join cannot deal |
| 110 | // with multiple simultaneous calls. |
| 111 | mData->mGateway.acquire(); |
| 112 | mData->mGateway.release(); |
| 113 | return true; |
| 114 | } |
| 115 | |
| 116 | void Thread::run(void* arg) |
| 117 | { |