代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/444606/7610945
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
www.eeworm.com/read/128880/14273932
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
www.eeworm.com/read/113863/15446430
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
www.eeworm.com/read/100584/15871005
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
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.
www.eeworm.com/read/132748/5909541
h rwlock.h
/* rwlock type. Generic version.
Copyright (C) 2002, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it
www.eeworm.com/read/183272/9172804
c detach.c
#include "apue.h"
#include
int
makethread(void *(*fn)(void *), void *arg)
{
int err;
pthread_t tid;
pthread_attr_t attr;
err = pthread_attr_init(&attr);
if (err != 0)
return(e
www.eeworm.com/read/183272/9172957
4 fig12.4
#include "apue.h"
#include
int
makethread(void *(*fn)(void *), void *arg)
{
int err;
pthread_t tid;
pthread_attr_t attr;
err = pthread_attr_init(&attr);
if (err != 0)
return(e
www.eeworm.com/read/175598/9540426
c sizes.c
#define _WIN32_WINNT 0x400
#include "test.h"
#include "../implement.h"
int
main()
{
printf("Sizes of pthreads-win32 structs\n");
printf("-------------------------------\n");
printf("%30s %4d\n
www.eeworm.com/read/364932/9887278
c detach.c
#include "apue.h"
#include
int
makethread(void *(*fn)(void *), void *arg)
{
int err;
pthread_t tid;
pthread_attr_t attr;
err = pthread_attr_init(&attr);
if (err != 0)
return(e