Semaphores in unmanaged code

I used the semaphore class to create semaphores. However, the examples use managed code (/ clr required), and I need to use unmanaged code because it seems that FreeType does not like working with managed code.

How to create two simple threads that use semaphore in unmanaged code?

+3
source share
3 answers

Use native Windows semaphore objects .

+3
source

You can try using Boost.interprocess. It provides semaphores. See here .

+2
+1

Source: https://habr.com/ru/post/1741922/


All Articles