Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

File Lock Types
[File I/O Handling Functions]

Collaboration diagram for File Lock Types:


Defines

#define APR_FLOCK_SHARED   1
#define APR_FLOCK_EXCLUSIVE   2
#define APR_FLOCK_TYPEMASK   0x000F
#define APR_FLOCK_NONBLOCK   0x0010

Define Documentation

#define APR_FLOCK_EXCLUSIVE   2
 

Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".

Definition at line 137 of file apr_file_io.h.

Referenced by APU_DECLARE(), do_read(), do_write(), and prep().

#define APR_FLOCK_NONBLOCK   0x0010
 

do not block while acquiring the file lock

Definition at line 143 of file apr_file_io.h.

Referenced by APR_DECLARE(), apr_file_lock(), and do_read().

#define APR_FLOCK_SHARED   1
 

Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.

Definition at line 131 of file apr_file_io.h.

Referenced by APR_DECLARE(), APU_DECLARE(), and prep().

#define APR_FLOCK_TYPEMASK   0x000F
 

mask to extract lock type

Definition at line 142 of file apr_file_io.h.

Referenced by APR_DECLARE().