The *nix documentation project is meant to provide online searchable documentation for Linux, FreeBSD, OpenBSD, NetBSD, HP-UX, Tru64 and other Unix like operating systems.
Currently hosting over 25000 manual pages,
over 200 Linux Howtos, over 100 FreeBSD tips and a friendly comunity forum where your questions will be answered.
|
Random man page:
sem_post(2) -- unlock a POSIX semaphore
|
|
sem_post() is used to post the semaphore referenced by sem. The calling thread will not return from its call to sem_post() unless it can either: increment the semaphore value, if there are no blocked threads on this semaphore; give the semaphore to a blocked thread, if there are any blocked threads on this semaphore; or have an error condition. If the semaphore value is < 0, the semaphore has bloc... |
|