|
IDL Reference Guide: Procedures and Functions |
|
The SEM_DELETE procedure destroys the reference to the specified semaphore within the current IDL process. (Semaphores themselves are independent of any IDL process.)
SEM_DELETE behaves differently on UNIX and Windows systems:
On UNIX systems, a semaphore can exist even if no process has a reference to it. In addition to destroying the reference to the specified semaphore within the current IDL process, SEM_DELETE will schedule the semaphore itself for destruction in the following situations:
See DESTROY_SEMAPHORE for additional information.
A semaphore that has been scheduled for destruction will be destroyed when the last process that has a reference to it destroys its reference.
On Windows systems, a semaphore only exists as long as some process has a reference to it. SEM_DELETE simply destroys the reference to the specified semaphore.
SEM_DELETE, strName
A scalar string containing the name associated with the semaphore. This is the name used when creating the semaphore with SEM_CREATE.
None
See SEM_LOCK for an example using this function.
SEM_CREATE, SEM_LOCK, SEM_RELEASE
IDL Online Help (March 06, 2007)