Denso RC5 Spezifikationen Seite 434

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 692
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 433
14-10
DELETESEM (Statement)
Function
Deletes a semaphore.
Format
DELETESEM <Semaphore ID>
Explanation
This statement deletes a semaphore with the semaphore ID designated in
<Semaphore ID>.
Related Terms
CREATESEM, FLUSHSEM, GIVESEM, TAKESEM
Example
DEFINT Li1Li2Li3=1
Li1 = CREATESEM(Li3) '
Creates a semaphore with the queuing system designated in Li3
and
'the semaphore ID obtained in Li1.
Li2 = CREATESEM(Li3) 'Creates a semaphore with the queuing system designated in
'Li3 and the semaphore ID obtained in Li2.
TAKESEM Li1 'Obtains the semaphore designated in Li1.
TALESEM Li2100 '
Obtains the semaphore designated in Li1. However, a timeout
occurs
'after 100 ms.
RUN samp1
GIVESEM Li1
'Releases one task from the wait status which has the
semaphore
'designated in Li1.
FLUSHSEM Li2 '
Releases all tasks from the wait status which have the
semaphore
'designated in Li2.
DELETESEM Li1 '
Deletes the semaphore with the semaphore ID designated in Li1.
DELETESEM Li2
'Deletes the semaphore with the semaphore ID designated in Li2.
Seitenansicht 433
1 2 ... 429 430 431 432 433 434 435 436 437 438 439 ... 691 692

Kommentare zu diesen Handbüchern

Keine Kommentare