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