Jump to content
  • Advertisement

Archived

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

Russell

Multithreading question

This topic is 5861 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!