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?
Use native Windows semaphore objects .
You can try using Boost.interprocess. It provides semaphores. See here .
CreateSemaphore, kernel32. . OpenSemaphore, . , Wait Functions, , . , ReleaseSemaphore, .
Source: https://habr.com/ru/post/1741922/More articles:4.0 / WCF: the best approach for a bidirectional message bus? - wcfWCF 4.0, bidirectional - .netEfficiently extract multiple packages - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1741920/how-can-i-reliably-check-client-identity-whilst-making-dcom-calls-to-a-c-net-35-server&usg=ALkJrhhTiaU51eW25jkmj7-PVOmqb1qMWgWhere can I find text formatting scripts similar to those used in stackoverflow? - phpTrying to parse OpenCV YAML with yaml-cpp - yaml-cppIs it safe to store cookies in the database? - securityWhat is wrong with this C # method? - methodsMultiple ifstreams vs ifstream + constant search - c ++Does anyone know about a simple but flexible 2d scene graph in C ++? - c ++All Articles