代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/124347/6053557
c mutex1r.c
/*
* mutex1r.c
*
* As for mutex1.c but with type set to PTHREAD_MUTEX_RECURSIVE.
*
* Create a simple mutex object, lock it, unlock it, then destroy it.
* This is the simplest test of the pthrea
www.eeworm.com/read/127805/14332987
cc semaphore.cc
/* $Id: Semaphore.cc,v 1.2 2000/09/24 13:54:53 pure Exp $ */
#include "Semaphore.h"
Semaphore::Semaphore() : Mutex()
{
if (pthread_cond_init(&cond, NULL))
throw;
value = 0;
}
Semaphore::~Semap
www.eeworm.com/read/127805/14332997
cc mutex.cc
/* $Id: Mutex.cc,v 1.1.1.1 2000/09/24 11:39:10 pure Exp $ */
#include "Mutex.h"
Mutex::Mutex()
{
if (pthread_mutex_init(&mutex, NULL))
throw;
}
Mutex::~Mutex()
{
pthread_mutex_destroy(&mutex);
www.eeworm.com/read/175598/9540357
c mutex4.c
/*
* mutex4.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
www.eeworm.com/read/417321/10994432
c mutex4.c
/*
* mutex4.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
www.eeworm.com/read/410397/11288211
cc mypthread.cc
// Larbin
// Sebastien Ailleret
// 07-12-01 -> 07-12-01
#include
#include
#include "utils/mypthread.h"
/* Launch a new thread
* return 0 in case of success
*/
void startTh
www.eeworm.com/read/122139/14718845
cc threads.cc
// Larbin
// Sebastien Ailleret
// 15-11-99 -> 07-12-00
#include "xutils/threads.h"
#include
/* Launch a new thread
* return 0 in case of success
*/
int startThread (StartFun run, voi
www.eeworm.com/read/374989/9376291
c oncerun.c
#include
#include
pthread_once_t once = PTHREAD_ONCE_INIT;
void run(void)
{
printf("Fuction run is running in thread %d\n",pthread_self());
}
void * thread
www.eeworm.com/read/419410/10870277
c oncerun.c
#include
#include
pthread_once_t once = PTHREAD_ONCE_INIT;
void run(void)
{
printf("Fuction run is running in thread %d\n",pthread_self());
}
void * thread
www.eeworm.com/read/329171/12972611
c oncerun.c
#include
#include
pthread_once_t once = PTHREAD_ONCE_INIT;
void run(void)
{
printf("Fuction run is running in thread %d\n",pthread_self());
}
void * thread