代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/113863/15446399
c pthread_rwlock_unlock.c
/* include unlock */
#include "unpipc.h"
#include "pthread_rwlock.h"
int
pthread_rwlock_unlock(pthread_rwlock_t *rw)
{
int result;
if (rw->rw_magic != RW_MAGIC)
return(EINVAL);
if ( (result =
www.eeworm.com/read/113863/15446400
c pthread_rwlock_wrlock.c
/* include func */
#include "unpipc.h"
#include "pthread_rwlock.h"
/* include rwlock_cancelwrwait */
static void
rwlock_cancelwrwait(void *arg)
{
pthread_rwlock_t *rw;
rw = arg;
rw->rw_nwaitwrite
www.eeworm.com/read/113863/15446403
c pthread_rwlock_trywrlock.c
/* include trywrlock */
#include "unpipc.h"
#include "pthread_rwlock.h"
int
pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
{
int result;
if (rw->rw_magic != RW_MAGIC)
return(EINVAL);
if ( (re
www.eeworm.com/read/113863/15446404
c pthread_rwlock_rdlock.c
#include "unpipc.h"
#include "pthread_rwlock.h"
/* include rwlock_cancelrdwait */
static void
rwlock_cancelrdwait(void *arg)
{
pthread_rwlock_t *rw;
rw = arg;
rw->rw_nwaitreaders--;
pthread_mute