| 1 | /* sys/smutex.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | /* Simple mutex semaphores. These semaphores need not be created and
|
|---|
| 4 | destroyed, _smutex objects just have to be initialized to zero.
|
|---|
| 5 | _smutex semaphores are implemented with looping and DosSleep.
|
|---|
| 6 | Therefore, they should be used only if a collision is very
|
|---|
| 7 | unlikely, for instance, during initializing. In all other cases,
|
|---|
| 8 | _fmutex or HMTX semaphores should be used. */
|
|---|
| 9 |
|
|---|
| 10 | /* This header requires <sys/builtin.h>. */
|
|---|
| 11 |
|
|---|
| 12 | #ifndef _SYS_SMUTEX_H
|
|---|
| 13 | #define _SYS_SMUTEX_H
|
|---|
| 14 |
|
|---|
| 15 | #if defined (__cplusplus)
|
|---|
| 16 | extern "C" {
|
|---|
| 17 | #endif
|
|---|
| 18 |
|
|---|
| 19 | typedef signed char _smutex;
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | void __smutex_request_internal (__volatile__ _smutex *);
|
|---|
| 23 |
|
|---|
|
|---|