代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/127694/6002800
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/127694/6002804
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/127694/6002806
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/127694/6002808
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/127694/6002824
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/127694/6002827
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/127694/6002831
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/126641/6014642
sh pthread2.sh
#!/bin/sh
#
# build using pthreads where it's already built into the system
#
/bin/rm -f mttest
gcc -DPTHREADS -I../../include -g mttest.c -o mttest -L../.. -lssl -lcrypto -lpthread
www.eeworm.com/read/125688/6025576
h pthread_np.h
#ifdef OSKIT
#error This isn't valid in the OSKIT.
#else
/*
* Copyright (c) 1996-98 John Birrell .
* All rights reserved.
*
* Redistribution and use in source and binary forms,
www.eeworm.com/read/125688/6026628
h pthread_np.h
#ifdef OSKIT
Nope, cannot include pthread_np.h
#else
/*
* Copyright (c) 1996 John Birrell .
* All rights reserved.
*
* Redistribution and use in source and binary forms, with o