Searched refs:IOThreadSelf (Results 1 - 4 of 4) sorted by relevance

/darwin-on-arm/xnu/iokit/Kernel/
H A DIOLocks.cpp133 if( lock->thread == IOThreadSelf())
139 lock->thread = IOThreadSelf();
148 if( lock->thread == IOThreadSelf()) {
155 lock->thread = IOThreadSelf();
167 assert( lock->thread == IOThreadSelf() );
179 return( lock->thread == IOThreadSelf());
188 assert(lock->thread == IOThreadSelf());
198 lock->thread = IOThreadSelf();
210 assert(lock->thread == IOThreadSelf());
221 lock->thread = IOThreadSelf();
[all...]
H A DIOWorkLoop.cpp433 return (IOThreadSelf() == workThread);
H A DIOService.cpp199 del = (((int)IOThreadSelf()) ^ del ^ (del >> 10)) & 0x3ff; \
1002 element->thread = IOThreadSelf();
3027 LOG("config(%p): stalling %s\n", IOThreadSelf(), getName());
3032 LOG("config(%p): waking\n", IOThreadSelf() );
3404 IOThreadSelf(), job->nub->getName(), job->type);
3414 IOThreadSelf(), job->type );
3438 LOG("config(%p): terminating\n", IOThreadSelf() );
/darwin-on-arm/xnu/iokit/IOKit/
H A DIOLib.h243 /*! @function IOThreadSelf
247 #define IOThreadSelf() (current_thread()) macro
251 @discussion This function creates a kernel thread, and passes the caller supplied argument to the new thread. Warning: the value returned by this function is not 100% reliable. There is a race condition where it is possible that the new thread has already terminated before this call returns. Under that circumstance the IOThread returned will be invalid. In general there is little that can be done with this value except compare it against 0. The thread itself can call IOThreadSelf() 100% reliably and that is the prefered mechanism to manipulate the IOThreads state.

Completed in 46 milliseconds