代码搜索:pthread_create
找到约 436 项符合「pthread_create」的源代码
代码结果 436
www.eeworm.com/read/124347/6053533
c create1.c
/*
* create1.c
*
* Description:
* Create a thread and check that it ran.
*
* Depends on API functions: None.
*/
#include "test.h"
static int washere = 0;
void * func(void * arg)
{
washere
www.eeworm.com/read/124347/6053558
c once1.c
/*
* once1.c
*
* Create a static pthread_once and test that it calls myfunc once.
*
* Depends on API functions:
* pthread_once()
* pthread_create()
*/
#include "test.h"
pthread_once_t once =
www.eeworm.com/read/327064/6287729
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/482748/6622035
c attr_thread.c
#include
#include
#include
void thread1(void)
{
int i=0;
for(i=0;i
www.eeworm.com/read/410511/11280499
c 12-1.c
#include
#include /*多线程编程中必须包含这个头文件*/
void handle(void)
{
int i;
for( i=0; i < 10; i++)
{
printf("my name is sub_thread.\n");
}
}
int main(void){
pthread_
www.eeworm.com/read/264473/11312023
c 12-1.c
#include
#include /*多线程编程中必须包含这个头文件*/
void handle(void)
{
int i;
for( i=0; i < 10; i++)
{
printf("my name is sub_thread.\n");
}
}
int main(void){
pthread_
www.eeworm.com/read/408584/11380434
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/408584/11380446
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/408584/11380454
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/408584/11380457
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