[Leglug-core] Posix/NTPL : Is particular thread alive ? (pthread_timedjoin_np ??)
ID
idave147 at gmail.com
Thu Apr 17 06:55:51 EDT 2008
---------- Forwarded message ----------
From: Lev Olshvang <levo at vboxcomm.com>
Date: Wed, Apr 16, 2008 at 9:03 PM
Subject: Posix/NTPL : Is particular thread alive ? (pthread_timedjoin_np ??)
To: linux-il at cs.huji.ac.il
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.leglug.org/pipermail/leglug-core/attachments/20080417/5e434783/attachment.htm
More information about the Leglug-core
mailing list