Lev Olshvang wrote:

Hi Guys,


To finish with this thread, my last question

What is altternative to phtread_timed_join_np ?

I want to wait for thread temination, but not forever.
If you write code for Linux only I would use pthread_timed_join_np.

Yes, it's non portable. If you'd ever switch OS you will have to pay the price. But it's is the right interface.

If you need portable code though, I would do a loop testing with pthread_kill() for thread exitence and then sleeping. Not elegant, but work.

Gilad

--
Gilad Ben-Yossef Chief Coffee Drinker

Codefidence Ltd.
The code is free, your time isn't.(TM)

Web:    http://codefidence.com
Email:  [EMAIL PROTECTED]
Office: +972-8-9316883 ext. 201
Fax:    +972-8-9316885
Mobile: +972-52-8260388

Reply via email to