site_archiver(a)lists.apple.com
Delivered-To: darwin-kernel(a)lists.apple.com
Hi Folks,
I will have to use semaphore to make synchronization between the
threads.
<http://darwinsource.opendarwin.org/10.4.3/xnu-792.6.22/osfmk/man/>
You should really use IOCommandPool instead.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (Darwin-kernel(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.…
On Dec 23, 2005, at 5:21 AM, Yogesh P wrote:
After creating a thread using IOCreateThread(), I will have to put
that
thread in a wait state and wake up that thread after receiving some
interrupt.
Is there any sample driver code on developer site which I can refer
for
using semaphore for synchronizing threads.
You really don't want to do this, but if you are insistent on not
doing things the right way, there's documentation on Mach semaphore
primitives at:
Don't blame us when your product causes someone's machine to appear to
lock up (there are only 7 places Mach semaphores that are used
internally in the kernel, and one of those is in IOCommandQueue).
This email sent to site_archiver(a)lists.apple.com