|
-
Oct 26th, 2025, 07:27 PM
#6
Re: CMutexEx Class for Safer & Cooperative Mutex Handling
 Originally Posted by xxdoc123
I run ,but I ran it at the same time and didn't see what you said about locking it in advance. Can you send a picture to take a look?
Try this in the latest version:
- Compile the demo app and run 1 instance of it.
- Run another instance of it - note that both instances are allowed to run.
- Close one of the instances
- In the remaining instance click the Extras menu, then click Block other app instances. This will acquire a perpetual mutex that will last for the rest of this app instances lifetime.
- Try to start another instance of the app - it will now show a message that another instance is running and give the option to Retry or Cancel.
- Click Retry a few times and notice that the app never starts, just keeps prompting you to Retry/Cancel.
- Close the fully running instance of the app
- Click Retry - the other instance of the app now starts.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|