| 200 | } |
| 201 | |
| 202 | KThread* KProcess::createThread() { |
| 203 | KThread* thread = new KThread(KSystem::getNextThreadId(), shared_from_this()); |
| 204 | |
| 205 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(threadsMutex); |
| 206 | this->threads.set(thread->id, thread); |
| 207 | return thread; |
| 208 | } |
| 209 | |
| 210 | void KProcess::removeThread(KThread* thread) { |
| 211 | { |