[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] pthread_wait_np
- To: eric <eek105@psu.edu>
- Subject: Re: [rtl] pthread_wait_np
- From: Michael Barabanov <baraban@fsmlabs.com>
- Date: Wed, 2 Aug 2000 23:51:39 +0400
- Cc: rtl@rtlinux.org, kissg@sztaki.hu
- In-Reply-To: <397DCAF7.BF3441D@psu.edu>; from eek105@psu.edu on Tue, Jul 25, 2000 at 01:14:31PM -0400
- Organization: VJY Associates
- References: <0FY800H03VIE7X@sztaki.hu> <397DCAF7.BF3441D@psu.edu>
- User-Agent: Mutt/1.2i
eric (eek105@psu.edu) wrote:
> Ok, the reason for the confusion is that pthread_wait_np() does work to
> some degree even if the thread is not periodic. Yes i failed to RTFM.
> the thing that i don't like about the doco on pthread_suspend_np() is
> that it says the thread may not block right away, which causes me some
> FUD.
pthread_suspend_np(pthread_self())
always suspends the thread immediately.
"may not block right away" referes to the case when the argument to
pthread_suspend_np is not the current thread (something we don't encourage).
In this case, suspension takes place when the scheduler next runs.
> Another problem has occurred to me. Is it ok to pthread_kill(wakeup) a
> thread that isn't suspended?
Yes it is. If the thread is running, this signal has no effect.
Michael.