pthreadlib.html
来自「Vxworks API操作系统和驱动程序设计API。压缩的HTML文件」· HTML 代码 · 共 1,229 行 · 第 1/5 页
HTML
1,229 行
</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./sigLib.html#kill">kill</a>( )</b>, <b><a href="./pthreadLib.html#pthread_sigmask">pthread_sigmask</a>( )</b>, <b><a href="./sigLib.html#sigprocmask">sigprocmask</a>( )</b>, <b><a href="./sigLib.html#sigaction">sigaction</a>( )</b>, <b><a href="./sigLib.html#sigsuspend">sigsuspend</a>( )</b>, <b><a href="./sigLib.html#sigwait">sigwait</a>( )</b><hr><a name="pthread_mutexattr_init"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_init( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_init( )</strong> - initialize mutex attributes object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_init ( pthread_mutexattr_t * pAttr /* mutex attributes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the mutex attribute object <i>pAttr</i> and fills itwith default values for the attributes as defined by the POSIXspecification.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_destroy">pthread_mutexattr_destroy</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprotocol">pthread_mutexattr_getprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprotocol">pthread_mutexattr_setprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutexattr_destroy"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_destroy( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_destroy( )</strong> - destroy mutex attributes object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_destroy ( pthread_mutexattr_t * pAttr /* mutex attributes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine destroys a mutex attribute object. The mutex attribute objectmust not be reused until it is reinitialized.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprotocol">pthread_mutexattr_getprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_init">pthread_mutexattr_init</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprotocol">pthread_mutexattr_setprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutexattr_setprotocol"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_setprotocol( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_setprotocol( )</strong> - set protocol attribute in mutex attribut object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_setprotocol ( pthread_mutexattr_t * pAttr, /* mutex attributes */ int protocol /* new protocol */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function selects the locking protocol to be used when a mutex is createdusing this attributes object. The protocol to be selected is either<b>PTHREAD_PRIO_INHERIT</b> or <b>PTHREAD_PRIO_PROTECT</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b>, <b>ENOTSUP</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_destroy">pthread_mutexattr_destroy</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprotocol">pthread_mutexattr_getprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_init">pthread_mutexattr_init</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutexattr_getprotocol"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_getprotocol( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_getprotocol( )</strong> - get value of protocol in mutex attributes object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_getprotocol ( pthread_mutexattr_t * pAttr, /* mutex attributes */ int * pProtocol /* current protocol (out) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function gets the current value of the protocol attribute in a mutexattributes object.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_destroy">pthread_mutexattr_destroy</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_init">pthread_mutexattr_init</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprotocol">pthread_mutexattr_setprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutexattr_setprioceiling"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_setprioceiling( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_setprioceiling( )</strong> - set prioceiling attribute in mutex attributes object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_setprioceiling ( pthread_mutexattr_t * pAttr, /* mutex attributes */ int prioceiling /* new priority ceiling */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function sets the value of the prioceiling attribute in a mutexattributes object. Unless the protocol attribute is set to<b>PTHREAD_PRIO_PROTECT</b>, this attribute is ignored.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_destroy">pthread_mutexattr_destroy</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprotocol">pthread_mutexattr_getprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_init">pthread_mutexattr_init</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprotocol">pthread_mutexattr_setprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutexattr_getprioceiling"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutexattr_getprioceiling( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutexattr_getprioceiling( )</strong> - get the current value of the prioceiling attribute in a mutex attributes object (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutexattr_getprioceiling ( pthread_mutexattr_t * pAttr, /* mutex attributes */ int * pPrioceiling /* current priority ceiling (out) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function gets the current value of the prioceiling attribute in a mutexattributes object. Unless the value of the protocol attribute is<b>PTHREAD_PRIO_PROTECT</b>, this value is ignored.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutexattr_destroy">pthread_mutexattr_destroy</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprotocol">pthread_mutexattr_getprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_init">pthread_mutexattr_init</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprotocol">pthread_mutexattr_setprotocol</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutex_init">pthread_mutex_init</a>( )</b><hr><a name="pthread_mutex_getprioceiling"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pthread_mutex_getprioceiling( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pthread_mutex_getprioceiling( )</strong> - get the value of the prioceiling attribute of a mutex (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pthread_mutex_getprioceiling ( pthread_mutex_t * pMutex, /* POSIX mutex */ int * pPrioceiling /* current priority ceiling (out) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function gets the current value of the prioceiling attribute of a mutex.Unless the mutex was created with a protocol attribute value of<b>PTHREAD_PRIO_PROTECT</b>, this value is meaningless.<p></blockquote><h4>RETURNS</h4><blockquote><p>On success zero; on failure a non-zero error code.<p></blockquote><h4>ERRNOS</h4><blockquote><p><b>EINVAL</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./pthreadLib.html#top">pthreadLib</a></b>, <b><a href="./pthreadLib.html#pthread_mutex_setprioceiling">pthread_mutex_setprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_getprioceiling">pthread_mutexattr_getprioceiling</a>( )</b>, <b><a href="./pthreadLib.html#pthread_mutexattr_setprioceiling">pthread_mutexattr_setprioceiling</a>( )</b><hr><a name="pthread_mutex_setprioceiling"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?