put new thread into active state in AttachCurrentThread

This commit is contained in:
Joel Dice 2009-03-14 18:07:38 -06:00
parent 073b829c79
commit 0ce644cca2

View File

@ -63,6 +63,8 @@ AttachCurrentThread(Machine* m, Thread** t, void*)
if (*t == 0) { if (*t == 0) {
*t = m->processor->makeThread(m, 0, m->rootThread); *t = m->processor->makeThread(m, 0, m->rootThread);
enter(*t, Thread::ActiveState);
m->localThread->set(*t); m->localThread->set(*t);
} }
return 0; return 0;