SEM Module
Application Program Interface
2-369
2.23
SEM Module
The SEM module is the semaphore manager.
Functions
❏
SEM_count. Get current semaphore count
❏
SEM_create. Create a semaphore
❏
SEM_delete. Delete a semaphore
❏
SEM_new. Initialize a semaphore
❏
SEM_pend. Wait for a counting semaphore
❏
SEM_pendBinary. Wait for a binary semaphore
❏
SEM_post. Signal a counting semaphore
❏
SEM_postBinary. Signal a binary semaphore
❏
SEM_reset. Reset semaphore
Constants, Types,
and Structures
typedef struct SEM_Obj *SEM_Handle;
/* handle for semaphore object */
struct SEM_Attrs { /* semaphore attributes */
String name; /* printable name */
};
SEM_Attrs SEM_ATTRS = { /* default attribute values */
"", /* name */
};
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the SEM
Manager Properties and SEM Object Properties topics. For descriptions
of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
Name
Type
Default
comment
String
"<add comments here>"
count
Int16
0