semDestroy (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


The semDestory() function will destroy a SEMAPHORE variable.

After the call to semDestroy(), the semaphore variable cannot be used in further operations.

 

 

Input:

sem : SEMAPHORE

The semaphore to destroy.

 

Returns: INT

0

Semaphore is destroyed.

1

Semaphore is not initialized.

2

Semaphore is busy.

 

Declaration:

FUNCTION semDestroy : INT;
VAR_INPUT
  sem : SEMAPHORE;
END_VAR;