[clug] pthread coroutines
Simon Burton
simon at arrowtheory.com
Wed Jul 2 18:04:49 EST 2003
Hi,
How to use mutexes so that effectively only one out of two threads
is running at a time? Like co-routines. Each thread blocks on a
pthread_mutex_lock() while the other is running. I'm sure it will come to me
eventually. Or is there Another Way?
Simon.
--
Simon Burton, B.Sc.
Licensed PO Box A66
ANU Canberra 2601
Australia
Ph. 02 6249 6940 \
------------------------\
------------------------/
http://arrowtheory.com /
More information about the linux
mailing list