boost interprocess named_mutex: race condition at creation?
18 Nov
2015
18 Nov
'15
9:05 p.m.
Hi, I am using named_mutex for synchronization among multiple processes. If all of the processes try to open_or_create the same-name named_mutex: named_mutex mutex(open_or_create, "somename"); 1) Is there any race condition for mutex creation? Or the API will guarantee one will create and all others will open? 2) If there is race condition, what are the work-arounds for this on Linux? Thanks, Liwei
20 Nov
20 Nov
7:02 a.m.
Interprocess guarantees synchronisation on creation of objects, as long as you do it via the create or open_or_create methods. -- View this message in context: http://boost.2283326.n4.nabble.com/boost-interprocess-named-mutex-race-condi... Sent from the Boost - Users mailing list archive at Nabble.com.
3294
Age (days ago)
3296
Last active (days ago)
1 comments
2 participants
participants (2)
-
Liwei Peng
-
Malko