[Interprocess] Determine if named_mutex was opened or created

3 Jun
2010
3 Jun
'10
1:36 p.m.
Hello! In the constructor of named_mutex it is possible to specify that the mutex should be opened or otherwise created. Is there a way to determine which took place: creation or open? Best regards Sönke

3 Jun
3 Jun
10:41 p.m.
AMDG Sönke Schau wrote:
In the constructor of named_mutex it is possible to specify that the mutex should be opened or otherwise created.
Is there a way to determine which took place: creation or open?
No. If you really need to know, you could try alternating open and create in a loop until it succeeds. In Christ, Steven Watanabe
5376
Age (days ago)
5376
Last active (days ago)
1 comments
2 participants
participants (2)
-
Steven Watanabe
-
Sönke Schau