On Mon, Mar 05, 2001 at 05:52:16PM -0500, Stephen D. Cohen wrote:
> Eric,
> 
> >     Thanks for the info - I guess I was looking for an answer as to
> >     whether this is "correct" to do. As Heinz mentioned, calling
> >     pthread_wakeup_np() _does_ work, however, I've been occasionally
> >     bitten by coding to the internal implementation (as opposed to
> >     coding to the external interface.)
> > 
> >     I guess I'll go ahead and do it, with a big comment in my code :-)
> 
>       I would not bother with the big comment.  Since the manual page does
> not indicate that the thread must be sleeping before it wakes it up, your
> usage is absolutely kosher.  As a side note, I really do not see any reason
> why this will not work in the future.  Perhaps Michael or Victor can throw
> in their two cents.

Waking up a process that is not sleeping has no effect and that seems like a sensible
behavior.

> 
> Regards,
> 
> Steve
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
 www.fsmlabs.com  www.rtlinux.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to