Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] Problem with file_lock on Linux
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2015-08-28 06:32:36


El 28/08/2015 a las 12:10, Ion Gaztañaga escribió:
> File locks are "process-wide resources", this means that there is no
> guarantee about thread synchronization within the same process. It only
> works to synchronize two different processes. Although the documentation
> speaks about processes, it should reflect this limitation appropriately.
> In windows, file locks do support intra-process synchronization whereas
> in UNIX only process-wide synchronization is supported.
>
> In any case you are in undefined behavior territory, trying to lock
> twice from the same thread, even from the same process for file locks.

For more information, see:

file:///C:/Data/Libs/boost/libs/interprocess/doc/html/interprocess/synchronization_mechanisms.html#interprocess.synchronization_mechanisms.file_lock.file_lock_not_thread_safe

Ion


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