Shared Persistent Heap Data Environment Manual 1.4.0
Loading...
Searching...
No Matches
saslock.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003-2014 IBM Corporation.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation, Steven Munroe - initial API and implementation
10 */
11
12#ifndef __SAS_LOCK_H
13#define __SAS_LOCK_H
14
43#ifdef __cplusplus
44#define __C__ "C"
45#else
46#define __C__
47#endif
48
50typedef void *vm_address_t;
51
53typedef enum
54{
55 SasUserLock__READ,
56 SasUserLock__WRITE
58
63extern __C__ int SasLockOwner;
64
73extern __C__ void
75
87extern __C__ void
89
90
98extern __C__ void
101
108extern __C__ void
110
114extern __C__ void
116
120extern __C__ void
122
127extern __C__ void
129
134extern __C__ void
136
137#endif //__SAS_LOCK_H
138
__C__ void SASUnlock(vm_address_t addr)
UnLock a SAS Address.
sas_userlock_request_t
SAS Lock request types.
Definition saslock.h:54
__C__ void SASLockRemove(void)
Remove the shared memory segment holding the SAS lock tables.
#define __C__
ignore this macro behind the curtain
Definition saslock.h:46
__C__ void SASLock(vm_address_t addr, sas_userlock_request_t lockT)
Lock a SAS Address.
__C__ void SASLockReset(void)
Reset the SAS Lock tables.
__C__ void SASLockDetach(void)
Detach the shared memory segment holding the SAS lock tables.
__C__ void SASLockInit(void)
Initialize the SAS Lock tables.
void * vm_address_t
Generic address to be used as symbolic lock ID.
Definition saslock.h:50
__C__ void SASLockPrintHighLevelStats(void)
Print High level Lock Statistic.
__C__ int SasLockOwner
Lock Segment Owner TRUE if this process was the first to run and created the lock segment....
__C__ void SASLockPrintDetailedStats(void)
Print detailed Lock Statistic.