|
Boost Users : |
Subject: [Boost-users] boost interprocess named_mutex: race condition at creation?
From: Liwei Peng (liwei.peng_at_[hidden])
Date: 2015-11-18 16:05:18
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net