代码搜索:pthread_create
找到约 436 项符合「pthread_create」的源代码
代码结果 436
www.eeworm.com/read/230902/14269553
c testpthread1.c
/*http://www.pudn.com:7122/s.asp?kw=linux%20c%20多线程&pos=40
http://www.pudn.com/downloads30/sourcecode/database/detail97410.html
作者:ddxxkk
多线程设计 1
线程的调用
程序名为 testt.c
在编译时一定要有 -lpthread
cc -lpthr
www.eeworm.com/read/220690/14791927
c 实例10-2.c
#include
#include
pthread_once_t once=PTHREAD_ONCE_INIT;
void once_run(void)
{
printf("once_run in thread %d\n",pthread_self());
}
void * child1(void *arg)
{
www.eeworm.com/read/208083/15254917
c 实例10-2.c
#include
#include
pthread_once_t once=PTHREAD_ONCE_INIT;
void once_run(void)
{
printf("once_run in thread %d\n",pthread_self());
}
void * child1(void *arg)
{
www.eeworm.com/read/164379/5490001
c 实例10-2.c
#include
#include
pthread_once_t once=PTHREAD_ONCE_INIT;
void once_run(void)
{
printf("once_run in thread %d\n",pthread_self());
}
void * child1(void *arg)
{
www.eeworm.com/read/269397/11099110
cpp main.cpp
// #include
#include "baseclass/publicclass.h"
#include "dataprocess.h"
#include "baseclass/signalprocess.h"
#include "baseclass/ysexception.h"
#include "baseclass/moduleinit.h"
#incl
www.eeworm.com/read/411683/11232423
c oncerun.c
#include
#include
pthread_once_t once = PTHREAD_ONCE_INIT;
void run(void)
{
printf("Fuction run is running in thread %d\n",pthread_self());
}
void * thread
www.eeworm.com/read/177968/9425426
c simple_mutex.c
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jacki
www.eeworm.com/read/160507/10525002
c gps_main.c
/************************************************
* serial communication demo
* by Zou jian guo
* 2003-12-22
*
*************************************************/
#include
www.eeworm.com/read/278551/10528231
cpp boostthread.cpp
#include "BoostThread.h"
int BoostThread::pthreadCreate(pthread_t *thread,pthread_attr_t *attr,void *(*start_routine)(void *), void *arg)
{
return pthread_create(thread,NULL,start_routine,NULL)
www.eeworm.com/read/272649/10951027
txt 多线程函数1.txt
//以下代码均来自《Linux C 编程》一书,m=%w'G6络0专Y-
zy\@g育垠^P业ZFq
本人对其中代码做了一些改进,使之更有利于系统学习GNU C标准库中Pthread。
//特别注意:makefile中的编译选项中一定要包含-lpthread(即连接pthread库)
makefile:
demo:demo1.o
gcc -o demo demo1.