Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

File Lock Types
[File I/O Handling Functions]


Defines

#define APR_FLOCK_SHARED
#define APR_FLOCK_EXCLUSIVE
#define APR_FLOCK_TYPEMASK   0x000F /**< mask to extract lock type */
#define APR_FLOCK_NONBLOCK

Define Documentation

#define APR_FLOCK_EXCLUSIVE
 

Value:

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

#define APR_FLOCK_NONBLOCK
 

Value:

0x0010  /**< do not block while acquiring the
                                           file lock */
do not block while acquiring the file lock

#define APR_FLOCK_SHARED
 

Value:

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. */
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.

#define APR_FLOCK_TYPEMASK   0x000F /**< mask to extract lock type */
 

mask to extract lock type


Generated on Sun Nov 20 18:51:50 2005 for Apache Portable Runtime by doxygen 1.3.6