代码搜索:pthread_create
找到约 436 项符合「pthread_create」的源代码
代码结果 436
www.eeworm.com/read/381152/9107212
c attr_thread.c
#include
#include
#include
void thread1(void)
{
int i=0;
for(i=0;i
www.eeworm.com/read/380481/9145590
c incprint.c
/* incprint.c - one thread increments, the other prints */
#include
#include
#define NUM 5
int counter = 0;
main()
{
pthread_t t1; /* one thread */
void *print_co
www.eeworm.com/read/180987/9277676
c main.c
/************************************************
* GPRS demo, use ppp to connect internet
* use ttyS1 to ctrol GPRS
* by Zou jian guo
* 2004-11-02
*
*********************
www.eeworm.com/read/179967/9326081
lc example01.lc
#include "unpthread.h"## 1 ##src/threads/example01.c##
#define NLOOP 5000## 2 ##src/threads/example01.c##
int counter; /* this is incremented by the threads */## 3 ##src/thr
www.eeworm.com/read/179967/9326089
c test02.c
#include "unpthread.h"
void *
myfunc(void *ptr)
{
int val;
printf("thread ID of myfunc: %d\n", pthread_self());
val = *((int *) ptr);
printf("val = %d\n", val);
sleep(10);
val = *((int *) pt
www.eeworm.com/read/179967/9326095
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/179967/9326100
lc example02.lc
#include "unpthread.h"## 1 ##src/threads/example02.c##
#define NLOOP 5000## 2 ##src/threads/example02.c##
int counter; /* this is incremented by the threads */## 3 ##src/thr
www.eeworm.com/read/179967/9326106
c test01.c
#include "unpthread.h"
void *
myfunc(void *ptr)
{
pause();
}
int
main(int argc, char **argv)
{
pthread_t tid;
int n;
/* Let's see what the return value is and what errno is after a error. */
www.eeworm.com/read/177968/9425447
c llist_test_threads_rw.c
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jacki
www.eeworm.com/read/177968/9425454
c llist_test_threads.c
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jacki