Changeset 2027 for trunk/src/emx/include/sys/fmutex.h
- Timestamp:
- Jun 13, 2005, 11:29:07 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/sys/fmutex.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r2026 r2027 6 6 7 7 #ifndef _SYS_FMUTEX_H 8 8 #define _SYS_FMUTEX_H 9 9 10 #include <sys/cdefs.h> 11 #include <stdlib.h> /* need abort */ 12 #include <InnoTekLIBC/FastInfoBlocks.h> 10 #include <sys/cdefs.h> 11 #include <stdlib.h> /* need abort */ 12 #include <InnoTekLIBC/FastInfoBlocks.h> 13 #include <386/builtin.h> 13 14 14 15 __BEGIN_DECLS … … 16 17 /* Constants for _fmutex.fs. See _fmutex_available() for ordering. */ 17 18 18 #define _FMS_UNINIT 0 19 #define _FMS_AVAILABLE 1 20 #define _FMS_OWNED_SIMPLE 2 21 #define _FMS_OWNED_HARD 3 19 #define _FMS_AUTO_INITIALIZE (-1) 20 #define _FMS_UNINIT 0 21 #define _FMS_AVAILABLE 1 22 #define _FMS_OWNED_SIMPLE 2 23 #define _FMS_OWNED_HARD 3 22 24 23 25 /* Constants for _fmutex_create() */ 24 26 25 26 27 27 #define _FMC_SHARED 0x01 28 #define _FMC_MUST_COMPLETE 0x02 29 #define _FMC_DUMMY 0x04 /* internal */ 28 30 29 31 /* Constants for _fmutex_request() */ 30 32 31 32 33 #define _FMR_IGNINT 0x01 34 #define _FMR_NOWAIT 0x02 33 35 34 36 /* We cannot use __attribute__ ((__packed__)) because G++ does not 35 37 support this. */ 36 38 37 39 #pragma pack(1) 38 40 typedef struct 39 41 { … … 51 53 const char *pszDesc; 52 54 } _fmutex; 53 55 #pragma pack() 54 56 57 #define _FMUTEX_INITIALIZER _FMUTEX_INITIALIZER_EX(0, __FILE__) 58 #define _FMUTEX_INITIALIZER_EX(fFlags, pszDesc) { 0, _FMS_AUTO_INITIALIZE, fFlags, {0x42,0x42}, 0, pszDesc } 55 59 56 60 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.