|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I was thinking that I my code would initially create a semaphore with max
and initial to 10, so any of the other threads would immediately block, and
then after all setup was done, would call MPSignalSemaphore 10 times, to
make it free to all the threads, which I guess should be, as I'm using this
semaphore to control the threads to wait until and setup is ready, and the
data which they need to be available.
Also is there a way to have a thread to block on a semaphore and event
together or n MP objects. I use wait on Object on Win32, which works great
to wait for a few differen't things to happen.
| References: | |
| >Re: Semaphores HOWTO (From: Mark Thomas <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.