Skip to main content
GameDev.net gamedev.net
🔒 Locked

Multithreading question

Started by Russell Oct 31, 2002 at 8:51 PM 1 replies 200+ views
Original Post
Russell
Russell
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
OldMan__
OldMan__
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!
If brute force does not solve your problem....you're not using enough!
Russell
Russell
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.