|
-
Oct 27th, 2025, 08:48 PM
#7
Fanatic Member
Re: CMutexEx Class for Safer & Cooperative Mutex Handling
 Originally Posted by jpbro
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.
It looks good, but many features are currently not usable. I hope there is a real use case where this module can actually be applied.thanks
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
|