Boost logo

Boost Users :

Subject: Re: [Boost-users] [Filesystem] Locking files
From: immanuel litzroth (ilitzroth_at_[hidden])
Date: 2010-04-13 04:13:11


As far as I know on Unix there is only cooperative locking, meaning you
can lock a file but other processes have to explicitly check whether that
lock is set and handle that.
Immanuel
On Tue, Apr 13, 2010 at 10:02 AM, Adam Badura <abadura_at_[hidden]> wrote:
>>>   Is it possible to lock a file with Boost.Filesystem to prevent its
>>> deletion, writing or reading?
>>>
>>
>> Against whom/what do you want to lock the file? On which platform?
>
>   Against other processes will suffice I guess. On Windows platform, however
> using Boost.Filesystem I hope for (at least some) platform independence.
>
>   Adam Badura
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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