06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pSOS+ <strong>System</strong> <strong>Calls</strong> sm_delete<br />

Notes<br />

See Also<br />

1. Once created, a semaphore is generally used by multiple tasks for<br />

communication and synchronization. There is rarely a reason for deleting a<br />

semaphore, even when it is no longer used, except to allow reuse of the SMCB.<br />

2. The calling task can be preempted, if a task waiting at the deleted semaphore<br />

has higher priority.<br />

Multiprocessor Considerations<br />

If smid identifies a global semaphore, sm_delete will notify the master node so<br />

that the semaphore can be removed from its Global Object Table. Thus, deletion of a<br />

global semaphore always causes activity on the master node.<br />

Callable From<br />

■ Task<br />

sm_create<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-125<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!