[Overview][Constants][Types][Procedures and functions][Index] |
Return the ID of a semaphore set, possibly creating the set
Source position: ipc.pp line 510
function semget( |
key: TKey; |
nsems: cint; |
semflg: cint |
):cint; |
msgget returns the ID of the semaphore set described by key. Depending on the flags in semflg, a new queue is created.
semflg can have one or more of the following values (combined by ORs):
Optionally, the flags can be ORed with a permission mode, which is the same mode that can be used in the file system.
if a new set of semaphores is created, then there will be nsems semaphores in it.
On error, -1 is returned, and IPCError is set.
|
Create token from filename |
|
|
Perform semaphore operation. |
|
|
Perform various control operations on a semaphore set |
lazarus-ccr.sourceforge.net |