diff options
Diffstat (limited to 'man3/sem_init.3')
| -rw-r--r-- | man3/sem_init.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/sem_init.3 b/man3/sem_init.3 index 2229ee8455..4da615ebfb 100644 --- a/man3/sem_init.3 +++ b/man3/sem_init.3 @@ -41,12 +41,12 @@ initializes the unnamed semaphore at the address pointed to by The .I value argument specifies the initial value for the semaphore. - +.PP The .I pshared argument indicates whether this semaphore is to be shared between the threads of a process, or between processes. - +.PP If .I pshared has the value 0, @@ -54,7 +54,7 @@ then the semaphore is shared between the threads of a process, and should be located at some address that is visible to all threads (e.g., a global variable, or a variable allocated dynamically on the heap). - +.PP If .I pshared is nonzero, then the semaphore is shared between processes, @@ -71,7 +71,7 @@ can operate on the semaphore using .BR sem_post (3), .BR sem_wait (3), and so on. - +.PP Initializing a semaphore that has already been initialized results in undefined behavior. .SH RETURN VALUE |
