| 358 | } |
| 359 | |
| 360 | void *JKRTask::run() |
| 361 | { |
| 362 | Request *req; |
| 363 | OSInitFastCast(); |
| 364 | while (true) |
| 365 | { |
| 366 | req = (Request *)waitMessageBlock(); |
| 367 | if (req->mCb != nullptr) |
| 368 | { |
| 369 | req->mCb(req->mArg); |
| 370 | if (mTaskMsgQueue != nullptr) |
| 371 | { |
| 372 | OSSendMessage(mTaskMsgQueue, req->mMsg, OS_MESSAGE_NOBLOCK); |
| 373 | } |
| 374 | } |
| 375 | req->mCb = nullptr; |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | JKRTask::Request *JKRTask::searchBlank() |
| 380 | { |
no test coverage detected