* Join this thread. If this thread is joinable, the calling thread blocks * until this thread completes. If the target thread is not joinable, then * nothing happens. */
| 144 | * nothing happens. |
| 145 | */ |
| 146 | virtual void join() { |
| 147 | if (!detached_ && state_ != uninitialized) { |
| 148 | thread_->join(); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Gets the thread's platform-specific ID |
no outgoing calls