| 173 | }; |
| 174 | |
| 175 | inline bool ThreadPool::WorkItemWrapper::isAlive() |
| 176 | { |
| 177 | WorkItem* item = ptr(); |
| 178 | if( !item ) |
| 179 | return false; |
| 180 | else if( item->isCancellationRequested() ) |
| 181 | { |
| 182 | ( *this ) = 0; |
| 183 | return false; |
| 184 | } |
| 185 | else |
| 186 | return true; |
| 187 | } |
| 188 | |
| 189 | inline F32 ThreadPool::WorkItemWrapper::getPriority() |
| 190 | { |