Jump to content

FSH_SEMSET

From EDM2
Revision as of 05:46, 20 February 2020 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function allows an FSD to set a semaphore unconditionally.

Syntax

FSH_SEMSET(pSem)

Parameters

pSem
is the handle to the system semaphore or the long address of the ram semaphore.

Returns

If no error is detected, a zero error code is returned. If an error is detected, one of the following error codes is returned:

  • ERROR_INTERRUPT the current thread received a signal.
  • ERROR_EXCL_SEM_ALREADY_OWNED the exclusive semaphore is already owned.
  • ERROR_TOO_MANY_SEM_REQUESTS there are too many semaphore requests in progress.
  • ERROR_PROTECTION_VIOLATION the semaphore is inaccessible.

Calling Sequence

int far pascal FSH_SEMSET(pSem)

void far * pSem;

Remarks

FSH_SEMSET may block.

Note
OS/2 does not validate input parameters. An FSD, therefore, should call FSH_PROBEBUF where appropriate.