pthread_join ??

Hello.

Can anybody explain the meaning of pthread_join() ??
I don’t understand the explanation in QNX docu site…
Thanks !

Pasus

Pasus <pasus@mail.nu> wrote:

Hello.

Can anybody explain the meaning of pthread_join() ??
I don’t understand the explanation in QNX docu site…
Thanks !

It synchronizes the calling thread to the termination of the
thread ID passed as the argument. I.e., calling pthread_join(thread_2)
in thread1 will block thread1 until thread_2 finishes. That’s
the short version – there are a few corner cases, like signals,
thread cancellation, etc that you might need to look into.

-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Consulting and Training at www.parse.com
Email my initials at parse dot com.

Pasus <pasus@mail.nu> wrote:

Hello.

Can anybody explain the meaning of pthread_join() ??

Think of it as waitpid() for threads. :slight_smile:

-David

QNX Training Services
I do not answer technical questions by email.

“Pasus” <pasus@mail.nu> wrote in message news:9sa20p$rb3$1@inn.qnx.com

Hello.

Can anybody explain the meaning of pthread_join() ??
I don’t understand the explanation in QNX docu site…
Thanks !

Pasus