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

Semaphore api

Started by The C modest god Dec 16, 2005 at 3:02 PM 4 replies 1.4k views
Original Post
The C modest god
The C modest god
I am using visual C++ 2003 in windows XP. I need semaphore in my program, what API should I use for that? What is the most updated and recomended API I should use? Is semaphore not a standard user program service in windows? What should I use instead? Thanks in advance.
It's all about the wheel.Never blindly trust technoligy.I love my internal organs.Real men don't shower. Quote: Original post by Toolmaker Quote:
The C modest god
The C modest god
I have found the create_semaphore and wait, but how do I do signal to the semaphore?
It's all about the wheel.Never blindly trust technoligy.I love my internal organs.Real men don't shower. Quote: Original post by Toolmaker Quote:
The C modest god
The C modest god
Ok, actually I have already seen it, but I didnt notice that the release semaphore is actually the signal mechanisem.
Thanks

Another question, don't I need to release the HANDLE somewhere? how do I release it?
It's all about the wheel.Never blindly trust technoligy.I love my internal organs.Real men don't shower. Quote: Original post by Toolmaker Quote:
RDragon1
RDragon1
just a FYI: the Boost.Threads library is pretty slick
Beer Hunter
Beer Hunter
Quote:
Original post by The C modest god
Another question, don't I need to release the HANDLE somewhere? how do I release it?
You can release it with CloseHandle.

Topic Locked

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

Sign in to reply to this topic.