代码搜索:pThread

找到约 7,828 项符合「pThread」的源代码

代码结果 7,828
www.eeworm.com/read/135076/5890339

h pos_mutex.h

// class for mutual exclusion using the posix thread library #include #include class leda_mutex { leda_mutex(const leda_mutex& m) { pthread_mutex_init (&lock_, NULL); }
www.eeworm.com/read/128880/14273938

c test1.c

/* verify that not calling pthread_*attr_destroy() causes memory leak */ #include "unpipc.h" int main(int argc, char **argv) { pthread_mutexattr_t mattr; pthread_condattr_t cattr; for ( ; ; ) {
www.eeworm.com/read/222279/14698807

h cdthread.h

#ifndef __CDTHREAD_H #define __CDTHREAD_H /* "Extra" functions - not pthread replaceents */ void SetNumProc(int); int GetNumProc(void); #ifdef USE_THREAD_LIB /* Use real threads */ #include
www.eeworm.com/read/411756/11228978

h lock.h

/// /// @file Lock.h /// @brief /// @author guozhiming /// @date 2007-04-11 /// #ifndef __LOCK__ #define __LOCK__ #include "def.h" /// @brief 锁的基本操作 1:读操作的时候读锁可以并发 2:写操作的时候,独占操作 class G_Lock {
www.eeworm.com/read/113863/15446434

c test1.c

/* verify that not calling pthread_*attr_destroy() causes memory leak */ #include "unpipc.h" int main(int argc, char **argv) { pthread_mutexattr_t mattr; pthread_condattr_t cattr; for ( ; ; ) {
www.eeworm.com/read/100584/15871009

c test1.c

/* verify that not calling pthread_*attr_destroy() causes memory leak */ #include "unpipc.h" int main(int argc, char **argv) { pthread_mutexattr_t mattr; pthread_condattr_t cattr; for ( ; ; ) {
www.eeworm.com/read/283381/9025808

bak pthread_mutex_lock.c.bak

#include #include void reader_function ( void ); void writer_function ( void ); char buffer; int buffer_has_item=0; pthread_mutex_t mutex; struct timespec delay;
www.eeworm.com/read/181046/9276481

m4 gnome-pthread-check.m4

dnl dnl And better, use gthreads instead... dnl AC_DEFUN([GNOME_PTHREAD_CHECK],[ PTHREAD_LIB="" AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread", [AC_CHECK_LIB(pthreads, pthread_crea
www.eeworm.com/read/175598/9540314

c pthread_timechange_handler_np.c

/* * pthread_timechange_handler_np.c * * Description: * This translation unit implements miscellaneous thread functions. * * ---------------------------------------------------------------------
www.eeworm.com/read/175598/9540520

c pthread_num_processors_np.c

/* * pthread_num_processors_np.c * * Description: * This translation unit implements non-portable thread functions. * * --------------------------------------------------------------------------