Archived

This topic is now archived and is closed to further replies.

Russell

Multithreading question

Recommended Posts

Is there an equivalent to the Win32 thread function WaitForMultipleObjects() in one of the (mostly) portable thread libraries, such as pthreads (or other libraries I''m not aware of)? I could only seem to find the equivalent of WaitForSingleObject in pthreads. Russell

Share this post


Link to post
Share on other sites
pthreads is not that like portable, it may even be non portable among 2 unix. If you want portability I would suggest to give a look at SDL. Anyway you will need a HIGHER level lib or API to provide that.

If brute force does not solve your problem....you''re not using enough!

Share this post


Link to post
Share on other sites
Ah yes, I forgot SDL has threading support. Do you know if it''s any slower than other threading libraries? Currently what I''m doing is not time critical, so I think SDL might work just fine, but eventually I''d like to experiment with SMP searching algorithms where performance is important.

Russell

Share this post


Link to post
Share on other sites