代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/232614/14188267
h my_pthread.h
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Publ
www.eeworm.com/read/129891/14219577
h pthread08.h
typedef struct {
pthread_t thread_tid; /* thread ID */
long thread_count; /* #connections handled */
} Thread;
Thread *tptr; /* array of Thread structures; calloc'ed */
#define MAXNCLI 32
in
www.eeworm.com/read/129891/14219585
c pthread08.c
#include "unpthread.h"
#include "pthread08.h"
void
thread_make(int i)
{
void *thread_main(void *);
Pthread_create(&tptr[i].thread_tid, NULL, &thread_main, (void *) i);
return; /* main thread ret
www.eeworm.com/read/129891/14219588
h pthread09.h
typedef struct {
pthread_t thread_tid; /* thread ID */
long thread_count; /* #connections handled */
} Thread;
Thread *tptr; /* array of Thread structures; calloc'ed */
int listenfd, nthr
www.eeworm.com/read/129891/14219592
c pthread09.c
#include "unpthread.h"
#include "pthread09.h"
void
thread_make(int i)
{
void *thread_main(void *);
Pthread_create(&tptr[i].thread_tid, NULL, &thread_main, (void *) i);
return; /* main thread ret
www.eeworm.com/read/129891/14219613
h pthread07.h
typedef struct {
pthread_t thread_tid; /* thread ID */
long thread_count; /* #connections handled */
} Thread;
Thread *tptr; /* array of Thread structures; calloc'ed */
int listenfd, nthr
www.eeworm.com/read/129891/14219618
c pthread07.c
#include "unpthread.h"
#include "pthread07.h"
void
thread_make(int i)
{
void *thread_main(void *);
Pthread_create(&tptr[i].thread_tid, NULL, &thread_main, (void *) i);
return; /* main thread ret
www.eeworm.com/read/129891/14219627
c lock_pthread.c
/* include my_lock_init */
#include "unpthread.h"
#include
static pthread_mutex_t *mptr; /* actual mutex will be in shared memory */
void
my_lock_init(char *pathname)
{
int fd;
pthre
www.eeworm.com/read/128880/14273892
h pthread_rwlock.h
/* include lockh */
#ifndef __pthread_rwlock_h
#define __pthread_rwlock_h
typedef struct {
pthread_mutex_t rw_mutex; /* basic lock on this struct */
pthread_cond_t rw_condreaders; /* for reader
www.eeworm.com/read/128880/14273956
h pthread_rwlock.h
/* include rwlockh */
#ifndef __pthread_rwlock_h
#define __pthread_rwlock_h
typedef struct {
pthread_mutex_t rw_mutex; /* basic lock on this struct */
pthread_cond_t rw_condreaders; /* for reade