apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Mongenet" <m...@mongenet.ch>
Subject apr_file_lock on Windows
Date Sun, 04 Nov 2007 13:28:33 GMT
Hello,

In apr_file_lock documentation, it is written:
"Locks are established on a per-thread/process basis;
a second lock by the same thread will not block."

It works like that on Unix.
But on Windows, a second call to apr_file_lock does block.

apr_file_lock(fd, APR_FLOCK_EXCLUSIVE);
apr_file_lock(fd, APR_FLOCK_EXCLUSIVE); /* blocks on Windows */

-- 
Marc Mongenet
Creator of the Web 2 Markup Language
http://w2ml.com

Mime
View raw message