Jim C
Jim C

Reputation: 4648

C++ Wait For Mutex

I have a C# app that creates a mutex:

 var mutex = new Mutex(true, // desire initial ownership
           "MyMutexName",
           out owned);

How would an unmanaged C++ app detect when this mutex is released?

Upvotes: 1

Views: 1266

Answers (1)

JSBձոգչ
JSBձոգչ

Reputation: 41378

OpenMutex, then WaitForSingleObject

Upvotes: 2

Related Questions