| 103 | void *JKRThread::start(void *thread) { return static_cast<JKRThread *>(thread)->run(); } |
| 104 | |
| 105 | JKRThread *JKRThread::searchThread(OSThread *thread) |
| 106 | { |
| 107 | JSUList<JKRThread> &threadList = getList(); |
| 108 | JSUListIterator<JKRThread> iterator; |
| 109 | for (iterator = threadList.getFirst(); iterator != threadList.getEnd(); ++iterator) |
| 110 | { |
| 111 | if (iterator->getThreadRecord() == thread) |
| 112 | { |
| 113 | return iterator.getObject(); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | return nullptr; |
| 118 | } |
| 119 | |
| 120 | #ifdef DEBUG |
| 121 | CW_FORCE_STRINGS(JKRThread_1, "JKRThread:%x OSThread:%x Load:ID:%d (%s)\n", "sThread == 0") |
nothing calls this directly
no test coverage detected