| 270 | } |
| 271 | |
| 272 | void ThreadImpl::kill() |
| 273 | { |
| 274 | #ifndef ANDROID |
| 275 | if(getThread(this)->state == _PxThreadStarted) |
| 276 | pthread_cancel(getThread(this)->thread); |
| 277 | getThread(this)->state = _PxThreadStopped; |
| 278 | #else |
| 279 | shdfnd::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__, |
| 280 | "ThreadImpl::kill() called, but is not implemented"); |
| 281 | #endif |
| 282 | } |
| 283 | |
| 284 | void ThreadImpl::sleep(uint32_t ms) |
| 285 | { |