Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers locking.h Source File

locking.h

00001 /*
00002  * locking.h
00003  * This file has no copyright assigned and is placed in the Public Domain.
00004  * This file is a part of the mingw-runtime package.
00005  * No warranty is given; refer to the file DISCLAIMER within the package.
00006  *
00007  * Constants for the mode parameter of the locking function.
00008  *
00009  */
00010 
00011 #ifndef _LOCKING_H_
00012 #define _LOCKING_H_
00013 
00014 /* All the headers include this file. */
00015 #include <_mingw.h>
00016 
00017 #define _LK_UNLCK   0   /* Unlock */
00018 #define _LK_LOCK    1   /* Lock */
00019 #define _LK_NBLCK   2   /* Non-blocking lock */
00020 #define _LK_RLCK    3   /* Lock for read only */
00021 #define _LK_NBRLCK  4   /* Non-blocking lock for read only */
00022 
00023 #ifndef NO_OLDNAMES
00024 #define LK_UNLCK    _LK_UNLCK
00025 #define LK_LOCK     _LK_LOCK
00026 #define LK_NBLCK    _LK_NBLCK
00027 #define LK_RLCK     _LK_RLCK
00028 #define LK_NBRLCK   _LK_NBRLCK
00029 #endif  /* Not NO_OLDNAMES */
00030 
00031 #endif  /* Not _LOCKING_H_ */