代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/290808/3970825
c example01.c
#include "unpthread.h"
#define NLOOP 5000
int counter; /* incremented by threads */
void *doit(void *);
int
main(int argc, char **argv)
{
pthread_t tidA, tidB;
Pthread_create(&tidA, NULL, &
www.eeworm.com/read/279968/4129856
c reent.c
/* Define the location of _REENT for the newlib C library */
#include
#include "pthread.h"
#include "internals.h"
struct _reent * __thread_reent()
{
pthread_descr self = thread_self();
www.eeworm.com/read/375190/2726821
hpp timespec.hpp
#ifndef BOOST_THREAD_PTHREAD_TIMESPEC_HPP
#define BOOST_THREAD_PTHREAD_TIMESPEC_HPP
// (C) Copyright 2007-8 Anthony Williams
//
// Distributed under the Boost Software License, Version 1.0. (See
//
www.eeworm.com/read/367640/9739213
c hello.c
#include
#include
#include
pthread_t thread;
//The execution thread is embodied in the hello function
void * hello()
{
struct sched_param p;
//assigning the thre
www.eeworm.com/read/113863/15446411
c test1.c
#include "unpipc.h"
#include "pthread_rwlock.h"
#define MAXNTHREADS 100
void *reader(void *), *writer(void *);
int nloop = 1000, nreaders = 6, nwriters = 4;
struct {
pthread_rwlock_t rwlock;
www.eeworm.com/read/113863/15446449
c test1.c
#include "unpipc.h"
#include "pthread_rwlock.h"
#define MAXNTHREADS 100
void *reader(void *), *writer(void *);
int nloop = 1000, nreaders = 6, nwriters = 4;
struct {
pthread_rwlock_t rwlock;
www.eeworm.com/read/100584/15870986
c test1.c
#include "unpipc.h"
#include "pthread_rwlock.h"
#define MAXNTHREADS 100
void *reader(void *), *writer(void *);
int nloop = 1000, nreaders = 6, nwriters = 4;
struct {
pthread_rwlock_t rwlock;
www.eeworm.com/read/100584/15871024
c test1.c
#include "unpipc.h"
#include "pthread_rwlock.h"
#define MAXNTHREADS 100
void *reader(void *), *writer(void *);
int nloop = 1000, nreaders = 6, nwriters = 4;
struct {
pthread_rwlock_t rwlock;
www.eeworm.com/read/389084/8549065
cpp monitor.cpp
#include
#include
#include
#include
using namespace std;
#define QSIZE 8
class monitor
{
private:
pthread_cond_t full; /* count the number of chara
www.eeworm.com/read/167847/9950394
h semaphore.h
/* include semaphoreh */
/* 4the fundamental datatype */
typedef struct {
pthread_mutex_t sem_mutex; /* lock to test and set semaphore value */
pthread_cond_t sem_cond; /* for transition from 0 t