[Leglug-core] Fwd: Posix/NTPL : Is particular thread alive ? (pthread_timedjoin_np ??) - Solved

ID idave147 at gmail.com
Thu Apr 17 06:56:47 EDT 2008


---------- Forwarded message ----------
From: Lev Olshvang <levo at vboxcomm.com>
Date: Thu, Apr 17, 2008 at 9:59 AM
Subject: Re: Posix/NTPL : Is particular thread alive ? (pthread_timedjoin_np
??) - Solved
To: linux-il at cs.huji.ac.il


Just solved  - evidently the timeout should be specified as absolute time

------------------------------------------------------------------------------------------------------------------------------


Lev Olshvang wrote:

> Hi friends,
>
> I seems that i have buggy implementation of pthread_timedjoin_np.
>
> Although linux does not documented this function yet ( see
> http://www.kernel.org/doc/man-pages/missing_pages.html ), I suspect that
> on my installation
> this function does not work properly because it returns  sometimes 0,
> sometimes 110 and does not set errno to ETIMEOUT.
>
>
> After some googling I still do not know how to get thread status.
>
> As an idea i thought about using the futex() to check memory pointed my
> thread handle, but
> I am almost sure this solution (if pthread handle indeed references
> memory) is dirty, ...
>
> I saw on this list people with experience in thread programming and  I am
> hope for you help.
>
> Cheers,
> Lev
>
> =================================================================
> To unsubscribe, send mail to linux-il-request at cs.huji.ac.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request at cs.huji.ac.il
>
>

=================================================================
To unsubscribe, send mail to linux-il-request at cs.huji.ac.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request at cs.huji.ac.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.leglug.org/pipermail/leglug-core/attachments/20080417/e90cdf51/attachment.htm 


More information about the Leglug-core mailing list