source: trunk/src/emx/include/sys/smutex.h@ 213

Last change on this file since 213 was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
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)
16extern "C" {
17#endif
18
19typedef signed char _smutex;
20
21
22void __smutex_request_internal (__volatile__ _smutex *);
23