| iMatix home page | << | < | > | >> |
SMT Version 2.81 |
#include "smtlib.h" int semaph_signal ( SEMAPH *semaph /* Semaph to signal */ )
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 |
{ #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 */ }
| << | < | > | >> | Copyright © 1996-99 iMatix Corporation |