#define fFlags loopRestart
-extern "C" extern void stack_privilege( thread_t thread);
-
void IOWorkLoop::launchThreadMain(void *self)
{
- register thread_t mythread = current_thread();
-
- // Make sure that this thread always has a kernel stack
- stack_privilege(mythread);
thread_set_cont_arg((int) self);
threadMainContinuation();
}
IOWorkLoop *me = new IOWorkLoop;
if (me && !me->init()) {
- me->free();
+ me->release();
return 0;
}
}
IOReturn IOWorkLoop::runAction(Action inAction, OSObject *target,
- void *arg0 = 0, void *arg1 = 0,
- void *arg2 = 0, void *arg3 = 0)
+ void *arg0, void *arg1,
+ void *arg2, void *arg3)
{
IOReturn res;