代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/124347/6053555
c self2.c
/*
* self2.c
*
* Test for pthread_self().
*
* Depends on API functions:
* pthread_create()
* pthread_self()
*
* Implicitly depends on:
* pthread_getspecific()
* pthread_setspecific()
*/
#
www.eeworm.com/read/402196/11541136
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/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/173174/9669866
h draft.h
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
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/200782/15424888
m4 aclocal.m4
dnl aclocal.m4 generated automatically by aclocal 1.4a
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlim
www.eeworm.com/read/177968/9425460
h rdwr.h
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jacki
www.eeworm.com/read/347553/7125667
h rdwr.h
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, J
www.eeworm.com/read/113031/15471975
h rdwr.h
/********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jacki
www.eeworm.com/read/167847/9950273
c test2.c
/* verify that calling pthread_*attr_destroy() avoids memory leak */
#include "unpipc.h"
int
main(int argc, char **argv)
{
pthread_mutexattr_t mattr;
pthread_condattr_t cattr;
for ( ; ; ) {
Pt