How to suspend and resume (almost) all threads of a process ?
How to suspend and resume (almost) all threads of a process ?
- Subject: How to suspend and resume (almost) all threads of a process ?
- From: Nat! <email@hidden>
- Date: Wed, 19 Jan 2005 19:42:55 +0100
- Resent-date: Wed, 19 Jan 2005 19:55:32 +0100
- Resent-from: Nat! <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
I'd like to do the following. In my library code I want to get a list
of all threads of my process and the thread I am currently in myself
(pthread_this()). What I then want to do is suspend all the other
threads, do a little processing and then resume all the other threads.
The general idea is something akin to a "full garbage collection". The
effect would be a process-wide mutex without the mutex.
man pthread didn't give much help.
Where should I look for documentation or even better sample code to
steal ?
Ciao
Nat!
------------------------------------------------------
Just because nobody understands you
does not mean you’re an artist. -- DLR
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden