Creating semaphores with unmanaged code in C++
- by Dororo
I've been using the MSDN Library to create semaphores, located at:
http://msdn.microsoft.com/en-us/library/system.threading.semaphore.aspx
However, the examples are using Managed code (requires /clr), and I need to use Unmanaged code because FreeType doesn't like working with Managed code it seems. How would I go about creating 2 simple threads which use a semaphore if I'm using unmanaged code?
Many thanks for your help.