$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Filesystem] Locking files
From: Adam Badura (abadura_at_[hidden])
Date: 2010-04-14 02:38:38
> To clarify this. Your application is made up from several processes and
> you want to implement locking between those or do you want to lock
> against completely unrelated processes?
Unrelated processes. Safety of some recovery operations depends on some
specific files to not be modified (or deleted) in the mean time. Thus I
wanted to lock them.
> For the first case you can use boost.interprocess for the second case i
> don't see a portable solution as for example POSIX systems are
> implementing advisory locking (as opposed to mandatory locking on
> Windows). On such system you can only have locking between cooperating
> processes which are obeying to a locking protocol.
This answers my question ("immanuel litzroth" answered it as well but
more briefly). Thanks.
Adam Badura