代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/100019/15887958
c sem1.c
#include
#include
main()
{
pthread::set_project( "/tmp/sematest" );
semaphore sem(attributes::process_shared);
sem.wait();
cout
www.eeworm.com/read/100019/15887959
c sem2.c
#include
#include
main()
{
pthread::set_project( "/tmp/sematest" );
semaphore sem(attributes::process_shared);
sem.post();
}
www.eeworm.com/read/200278/5070982
c atfork.c
#include "apue.h"
#include
pthread_mutex_t lock1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t lock2 = PTHREAD_MUTEX_INITIALIZER;
void
prepare(void)
{
printf("preparing locks...\n");
pt
www.eeworm.com/read/134926/13970113
c key1.c
#include
#include
typedef struct thddata_t
{
volatile int exit_code;
pthread_t thdid;
pthread_attr_t attr;
pthread_mutex_t mutex;
pthread_cond_t cond;
int key;
www.eeworm.com/read/419387/2078629
c pthreads.c
#include
#include
/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create
is prototyped to be just a "pthread_attr_t", while under Solaris it
is a "pthread_at
www.eeworm.com/read/419387/2078994
c pthreads.c
#include
#include
/* Under OSF 2.0 & 3.0 and HPUX 10, the second arg of pthread_create
is prototyped to be just a "pthread_attr_t", while under Solaris it
is a "pthread_at
www.eeworm.com/read/347594/11657027
cpp mypl.cpp
#include "mypl.h"
void *myListen(void *p)
{
CMyPL * pPS= (CMyPL *)p;
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL);
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL);
sleep(5);
while
www.eeworm.com/read/228215/14395850
c rwlock.c
#include
#include "pthread_rwlock.h"
/*
int pthread_rwlock_init(pthread_rwlock_t *rw, int *attr)
{
int result;
if(attr != 0);
return(EINVAL);
if( (result = pthread_mu
www.eeworm.com/read/470917/1438902
versions
libpthread {
GLIBC_2.3.4 {
longjmp; siglongjmp;
}
GLIBC_2.6 {
# Changed PTHREAD_STACK_MIN.
pthread_attr_setstack; pthread_attr_setstacksize;
}
}
www.eeworm.com/read/237551/4623231
versions
libpthread {
GLIBC_2.3.4 {
longjmp; siglongjmp;
}
GLIBC_2.6 {
# Changed PTHREAD_STACK_MIN.
pthread_attr_setstack; pthread_attr_setstacksize;
}
}