On Sun, 31 Dec 2006 14:34:01 -0800, Paul Pluzhnikov wrote:

> Mike - EMAIL IGNORED <[EMAIL PROTECTED]> writes:
> 
>> [quoted text muted]
> 
> Who said anything about "lock" ?
> 
> Try "man 3 lockf" instead.
> 
> Cheers,

Thanks for this; it solves my problem >between< processes.
But it does not work >within< a process; it is possible to
take the same lock twice in the same process.  However, as
previously mentioned, I can deal with that by accessing
the file via a singleton.

Now I have noticed that closing the file releases the
lock, so I wonder if use of F_ULOCK is really necessary.
I am calling it in case it releases resources that the
close() might miss.

Mike.

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to