| iMatix home page
| << | < | > | >>
SMT Logo SMT
Version 2.81

 

semaph_signal

#include "smtlib.h"
int
semaph_signal (
    SEMAPH *semaph                      /*  Semaph to signal                 */
)

Synopsis

Adds 1 to the semaphore value. Returns 0 when completed normally, else returns -1 and sets smt_errno to one of these values:
SMT NOTREADY smt_init() was not called, or failed

Source Code - (smtlib.c)

{
#if (defined (SMT_TRACE))
    trace ("semaph_signal");
#endif
    ASSERT (semaph);
    if (!smt_alive)                     /*  If SMT API was not correctly     */
      {                                 /*    initialised, forget it         */
        smt_errno = SMT_NOTREADY;
        return (-1);
      }

    semaph-> value++;                   /*  Bump semaphore value             */
    return (0);                         /*    initialised, forget it         */
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation