ThreadSleep was: IOCommandgate->commandSleep meaning of the flags
ThreadSleep was: IOCommandgate->commandSleep meaning of the flags
- Subject: ThreadSleep was: IOCommandgate->commandSleep meaning of the flags
- From: Godfrey van der Linden <email@hidden>
- Date: Wed, 20 Dec 2006 15:22:28 +1100
This is a question for the Mach guys to explain. I never really understood the differences precisely myself. In practice I use THREAD_ABORTSAFE and check the result of the commandSleep for a pre-emption event.
Godfrey On 06/12/2006, at 3:02 AM, devmaillists wrote: Dear List,
I have not found much documentation of the flags used in IOCommandgate->commandSleep.
I have looked at the darvin sources and found lck_mtx_sleep as the final receiver of the flag, but no additional information.
#define THREAD_UNINT 0 /* not interruptible */ #define THREAD_INTERRUPTIBLE 1 /* may not be restartable */ #define THREAD_ABORTSAFE 2 /* abortable safely */
Could anybody give me some advice?
Thank you very much!
Jürgen ______
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden