Jump to content
  • Advertisement
Sign in to follow this  
Lazy Foo

Suggestions for semaphore and mutex examples for the tutorials

This topic is 4420 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

I'm trying to think of a simple example program for my tutorials. I'm stuck because I can't think of an example program that wouldn't involve video functions in seperate threads. So far I came up with this: For the semaphore tutorial I though of having the blitting function being protected with a binary semaphore and have two threads blitting a set of images on the screen. For the mutex/conditions tutorial I was thinking doing a classic producer/consumer dealie. On one side the producer shows its randomly produced set of images and on the other the consumer shows it's copy of the images. Yeah so any ideas you guys throw at me would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
How about a ship that has different functions which run separately from each other: such as shields, guns, reload of guns, regeneration of shields, power output.

or something similar....?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!