Manual Pages for UNIX Darwin command on man sem_post
MyWebUniversity

Manual Pages for UNIX Darwin command on man sem_post

SEMPOST(2) BSD System Calls Manual SEMPOST(2)

NAME

sseemmppoosstt - unlock a semaphore

SYNOPSIS

##iinncclluuddee <>

int sseemmppoosstt(semt *sem);

DESCRIPTION

The semaphore referenced by sem is unlocked, the value of the semaphore is incremented, and all threads which are waiting on the semaphore are awakened. sseemmppoosstt() is reentrant with respect to signals and may be called from within a signal hanlder.

If successful, sseemmppoosstt() will return 0. Otherwise, -1 is returned and

errno is set. EERRRROORRSS sseemmppoosstt() succeeds unless: [EINVAL] sem is not a valid semaphore descriptor.

SEE ALSO

semopen(2), semtrywait(2), semwait(2), semctl(2), semget(2), semop(2) HISTORY sseemmppoosstt() is specified in the POSIX Realtime Extension

(1003.1b-1993/1003.1i-1995).

Darwin June 8, 2000 Darwin




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™