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