Re: Thread critical sections
Re: Thread critical sections
- Subject: Re: Thread critical sections
- From: Steve Checkoway <email@hidden>
- Date: Fri, 28 Oct 2005 17:34:18 -0700
Matt Watson wrote:
On Oct 28, 2005, at 5:15 PM, Steve Checkoway wrote:
It's that behavior that I wish to have, not data mutual exclusion.
You really need all threads suspended except the current one?
Are you writing a garbage collector or something similar?
No, I don't need the other threads suspended, I just want the current
one to not be preempted during particular sections of code. I suppose
that I could raise the thread's priority, but that's not terribly well
documented and doesn't guarantee that it won't be preempted (I think).
What I'm being told by the programmer who's actually using this is:
The time-critical stuff only starts when the function returns--it
doesn't mean "interrupt everything else and make me high priority", but
just "make me high priority and don't let anything interrupt me".
- Steve
_______________________________________________
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