KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q30808: MASM 5.10 OS2.DOC: OS/2 Call Summary - Semaphores

Article: Q30808
Product(s): See article
Version(s): 5.10   | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_masm
Last Modified: 26-MAY-1988

The following information is from the Microsoft Macro Assembler
Version 5.10 OS2.DOC file.

OS/2 Call Summary
Semaphore constant - INCL_DOSSEMAPHORES

   @DosSemClear - Unconditionally clears a semaphore
   Parameters - SemHandle:D

   @DosSemSet - Unconditionally sets a semaphore
   Parameters - SemHandle:D

   @DosSemWait - Blocks current thread until a specified semaphore is cleared
   Parameters - SemHandle:D, Timeout:D

   @DosSemSetWait - Sets a specified semaphore and blocks current thread
                    until the semaphore is cleared
   Parameters - SemHandle:D, Timeout:D

   @DosSemRequest - Obtains a semaphore
   Parameters - SemHandle:D, Timeout:D

   @DosCreateSem - Creates a system semaphore
   Parameters - NoExclusive:W, SemHandle:PD, SemName:PZ

   @DosOpenSem - Opens a semaphore and assigns it a handle
   Parameters - SemHandle:PD, SemName:PZ

   @DosCloseSem - Closes a system semaphore
   Parameters - SemHandle:D

   @DosMuxSemWait - Blocks the current thread until one or more specified
                    semaphores is cleared
   Parameters - IndexNum:PW, ListAddr:PS, Timeout:D
   Structure - MUXSEMLIST (which contains MUXSEM structures)

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.