Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
include
rw
_mutex-solaris.h
Go to the documentation of this file.
1
33
// SunOS 5.7 Threads Library:
34
// "A statically allocated mutex does not need to be explicitly
35
// initialized; by default, a statically allocated mutex is initialized
36
// with all zeros and its scope is set to be within the calling
37
// process."
38
39
#include <synch.h>
40
#include <
thread.h
>
41
42
#define _RWSTD_MUTEX_INIT(mutex) mutex_init (&mutex, USYNC_THREAD, 0)
43
#define _RWSTD_MUTEX_DESTROY(mutex) mutex_destroy (&mutex)
44
#define _RWSTD_MUTEX_LOCK(mutex) mutex_lock (&mutex)
45
#define _RWSTD_MUTEX_UNLOCK(mutex) mutex_unlock (&mutex)
46
#define _RWSTD_MUTEX_T mutex_t
thread.h
Generated by
1.9.8