hi,
i have a situation where i am need to kill a thread that has been suspended
using pthread_suspend_np.
if i say pthread_delete_np() i get the following error :
timed out in pthread_delete_np
how can this be done ??
the code is something like this
pthread_t my_thread;
void thread_fn(void *)
{
while(1)
{
pthread_suspend_np(my_thread);
pthread_testcancel();
if (...) /* code when woken up */
}
}
init_module()
{
pthread_create(&my_thread,...);
}
cleanup_module()
{
pthread_delete_np(my_thread);
}
thanks,
siva
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.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/