_lwp_cond_signal(2) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

_lwp_cond_signal(2)

_lwp_cond_signal(2)              System Calls              _lwp_cond_signal(2)

NAME
       _lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable

SYNOPSIS
       #include <sys/lwp.h>

       int _lwp_cond_signal(lwp_cond_t *cvp);


       int _lwp_cond_broadcast(lwp_cond_t *cvp);

DESCRIPTION
       The _lwp_cond_signal() function unblocks one LWP that is blocked on the
       LWP condition variable pointed to by cvp.


       The  _lwp_cond_broadcast()  function unblocks all LWPs that are blocked
       on the LWP condition variable pointed to by cvp.


       If  no  LWPs  are  blocked  on  the  LWP   condition   variable,   then
       _lwp_cond_signal() and _lwp_cond_broadcast() have no effect.


       Both  functions  should  be called under the protection of the same LWP
       mutex lock that is used with the LWP condition variable being signaled.
       Otherwise, the condition variable may be signalled between the test  of
       the  associated  condition  and  blocking in _lwp_cond_wait(). This can
       cause an infinite wait.

RETURN VALUES
       Upon successful completion, 0 is returned. A non-zero  value  indicates
       an error.

ERRORS
       The  _lwp_cond_signal()  and  _lwp_cond_broadcast() functions will fail
       if:

       EINVAL    The cvp argument points to an invalid LWP condition variable.


       EFAULT    The cvp argument points to an invalid address.


USAGE
       Most  software  should  use  the  standard  interfaces  listed  in  the
       threads(7) manual page instead of these low-level system calls.

SEE ALSO
       _lwp_mutex_lock(2), _lwp_cond_wait(2), threads(7)

HISTORY
       The  _lwp_cond_signal()  and _lwp_cond_broadcast() functions were added
       in Solaris 2.2.

Oracle Solaris 11.4               30 Jan 2023              _lwp_cond_signal(2)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3