RTS API Documentation  1.10.11
Macros
+ Collaboration diagram for File Lock Types:

Macros

#define SWITCH_FLOCK_SHARED   1
 
#define SWITCH_FLOCK_EXCLUSIVE   2
 
#define SWITCH_FLOCK_TYPEMASK   0x000F
 
#define SWITCH_FLOCK_NONBLOCK   0x0010
 

Detailed Description

Macro Definition Documentation

◆ SWITCH_FLOCK_EXCLUSIVE

#define SWITCH_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 749 of file switch_apr.h.

Referenced by main().

◆ SWITCH_FLOCK_NONBLOCK

#define SWITCH_FLOCK_NONBLOCK   0x0010

do not block while acquiring the file lock

Definition at line 758 of file switch_apr.h.

Referenced by main().

◆ SWITCH_FLOCK_SHARED

#define SWITCH_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 738 of file switch_apr.h.

◆ SWITCH_FLOCK_TYPEMASK

#define SWITCH_FLOCK_TYPEMASK   0x000F

mask to extract lock type

Definition at line 757 of file switch_apr.h.