#include <cray/libuni.h>#include <synch.h>

Go to the source code of this file.
Defines | |
| #define | DECL_LOCK(name) plock_t name; |
| #define | DECL_MPP_LOCK(name) mpplock_t name; |
| #define | EXTERN_LOCK(name) extern plock_t name; |
| #define | EXTERN_MPP_LOCK(name) extern mpplock_t name; |
| #define | MULTI_ON ($MULTION == 0) |
| #define | MEM_LOCK(lock) { if (MULTI_ON) _inline_mtlock(lock); } |
| #define | MEM_UNLOCK(lock) { if (MULTI_ON) _inline_mtunlock(lock); } |
| #define | LMEM_LOCK(lock) { _inline_mtlock(lock); } |
| #define | LMEM_UNLOCK(lock) { _inline_mtunlock(lock); } |
| #define | MPP_LOCK(lock) |
| #define | MPP_UNLOCK(lock) |
| #define | LIB_LOCK(index) |
| #define | LIB_UNLOCK(index) |
| #define | ENVIRON_LOCK 0 |
| #define | TRACEBACK_LOCK 1 |
| #define | MESSAGE_LOCK 2 |
| #define | LIB_LOCK_MAX 64 |
| #define | SIGNBIT (1<<63) |
| #define | TSKLK 2 |
| #define | SHARED_CC_BUG_WORKAROUND(name) |
Typedefs | |
| typedef mutex_t | plock_t |
| typedef long | mpplock_t |
Functions | |
| $MULTION (void) | |
| int | _lockon (plock_t *) |
| int | _lockoff (plock_t *) |
| void | _semts (int) |
| void | _semclr (int) |
| void | _cmr (void) |
| static void | _inline_mtlock (plock_t *lck) |
| static void | _inline_mtunlock (plock_t *lck) |
| #define MEM_LOCK | ( | lock | ) | { if (MULTI_ON) _inline_mtlock(lock); } |
Definition at line 117 of file mtlock.h.
Referenced by _alloc_unit(), _clruptr(), _do_open(), _f_open(), _fortclean(), _get_cup(), _get_next_unit(), and _setuptr().
| #define MEM_UNLOCK | ( | lock | ) | { if (MULTI_ON) _inline_mtunlock(lock); } |
Definition at line 118 of file mtlock.h.
Referenced by _clruptr(), _CLS(), _do_open(), _fortclean(), _get_cup(), _setuptr(), and _unit_close().
| #define TSKLK 2 |
Definition at line 256 of file mtlock.h.
Referenced by _inline_mtlock(), and _inline_mtunlock().
| $MULTION | ( | void | ) |
| void _cmr | ( | void | ) |
Referenced by _inline_mtlock(), and _inline_mtunlock().
| static void _inline_mtlock | ( | plock_t * | lck | ) | [static] |
| static void _inline_mtunlock | ( | plock_t * | lck | ) | [static] |
| int _lockoff | ( | plock_t * | ) |
Referenced by _inline_mtunlock().
| int _lockon | ( | plock_t * | ) |
Referenced by _inline_mtlock().
| void _semclr | ( | int | ) |
Referenced by _inline_mtlock(), and _inline_mtunlock().
| void _semts | ( | int | ) |
Referenced by _inline_mtlock(), and _inline_mtunlock().
1.6.1