AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
*     R0     !     Semaphore
          R1     =     pointer to flag (or NUL)

Notes:     Performs a Wait (decrement) operation on the given semaphore, if possible. If the operation causes the semaphore to go negative, the action can be twofold:
           1.     If the pointer in R1 is NUL, then the thread will be suspended until the sempahore is signalled upon.
           2.     If the pointer in R1 is not NUL, the word at the address will be filled with a boolean value indicating whether or not the Wait failed.

[sh-index] Back to list of manuals