2005-10-03 05:52:57

by Limeng [李萌]

[permalink] [raw]
Subject: Fw: pthread question

Hi:
I have a question in using pthread_join, when I program in windows, I
can call WaitForSingleObject to wait another thread exit, I can pass a
time-out to WaitForSingleObject, but, with pthread_join, I can't do the same
thing like WaitForSingleObject, any ideas? thx.
liixixi


2005-10-03 06:08:59

by Jakub Jelinek

[permalink] [raw]
Subject: Re: Fw: pthread question

On Mon, Oct 03, 2005 at 01:50:41PM +0800, liixixi wrote:
> Hi:
> I have a question in using pthread_join, when I program in windows, I
> can call WaitForSingleObject to wait another thread exit, I can pass a
> time-out to WaitForSingleObject, but, with pthread_join, I can't do the same
> thing like WaitForSingleObject, any ideas? thx.

This has nothing to do with linux-kernel, so the question should go to a
different list.
If you are using NPTL, you can use pthread_timedjoin_np.

Jakub