Shared Persistent Heap Data Environment Manual  1.1.0
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 
50 typedef void *vm_address_t;
51 
53 typedef enum
54 {
55  SasUserLock__READ,
56  SasUserLock__WRITE
58 
63 extern __C__ int SasLockOwner;
64 
73 extern __C__ void
74 SASLockReset (void);
75 
87 extern __C__ void
88 SASLockInit (void);
89 
90 
98 extern __C__ void
100  sas_userlock_request_t lockT);
101 
108 extern __C__ void
109 SASUnlock(vm_address_t addr);
110 
114 extern __C__ void
116 
120 extern __C__ void
122 
127 extern __C__ void
128 SASLockDetach (void);
129 
134 extern __C__ void
135 SASLockRemove (void);
136 
137 #endif //__SAS_LOCK_H
138 
__C__ void SASLockReset(void)
Reset the SAS Lock tables.
sas_userlock_request_t
SAS Lock request types.
Definition: saslock.h:53
void * vm_address_t
Generic address to be used as symbolic lock ID.
Definition: saslock.h:50
__C__ void SASLockInit(void)
Initialize the SAS Lock tables.
__C__ void SASLockRemove(void)
Remove the shared memory segment holding the SAS lock tables.
__C__ void SASLockDetach(void)
Detach the shared memory segment holding the SAS lock tables.
__C__ void SASLockPrintDetailedStats(void)
Print detailed Lock Statistic.
__C__ void SASUnlock(vm_address_t addr)
UnLock a SAS Address.
#define __C__
ignore this macro behind the curtain
Definition: saslock.h:46
__C__ int SasLockOwner
Lock Segment Owner TRUE if this process was the first to run and created the lock segment...
__C__ void SASLockPrintHighLevelStats(void)
Print High level Lock Statistic.
__C__ void SASLock(vm_address_t addr, sas_userlock_request_t lockT)
Lock a SAS Address.