代码搜索:pThread
找到约 7,828 项符合「pThread」的源代码
代码结果 7,828
www.eeworm.com/read/265943/11248535
h proants.h
#ifndef _PROANTS_H
#define _PROANTS_H
#include
#include "common.h"
#include
class CMgSingleTask;
class CMgFileManager;
class CProAnts
{
public:
CProAnts(
www.eeworm.com/read/134198/14001984
in config.h.in
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if you have the pcap library (-lpcap). */
#undef HAVE_LIBPCAP
/* Define if you have the pthread library
www.eeworm.com/read/100019/15887949
c philosopher.c
#include "philosopher.h"
philosopher::philosopher(int n, int forks, void *arg)
: pthread(arg)
{
_nr = n;
_forks = forks;
_count = forks;
}
philosopher::~philosopher()
{
delete p_fork;
}
www.eeworm.com/read/100019/15887950
h philosopher.h
#ifndef _PHILOSOPHER
#define _PHILOSOPHER
#include
#include
#include "dining.h"
class philosopher : public pthread {
private:
int _nr;
int _count;
int _forks;
dining *a
www.eeworm.com/read/251886/6335742
am makefile.am
lib_LTLIBRARIES = libsong_change.la
libdir = $(plugindir)/$(GENERAL_PLUGIN_DIR)
libsong_change_la_LDFLAGS = @PLUGIN_LDFLAGS@
libsong_change_la_LIBADD = @GTK_LIBS@ @PTHREAD_LIBS@
libsong_change_la_S
www.eeworm.com/read/175598/9540509
news
RELEASE 2.7.0
-------------
(2005-06-04)
General
-------
All new features in this release have been back-ported in release 1.11.0,
including the incorporation of MCS locks in pthread_once, however, v
www.eeworm.com/read/167847/9950115
c incr_pxmutex5.c
/* include main */
#include "unpipc.h"
#define MAXNPROC 100
int nloop;
struct shared {
pthread_mutex_t mutex;
long counter;
} *shared; /* pointer; actual structure in shared memory */
void *
www.eeworm.com/read/273217/10922595
h lock.h
#ifndef AUTO_LOCK_H
#define AUTO_LOCK_H
#include
namespace util
{
class LockableObject {
public:
LockableObject(){};
virtual ~LockableObject(){};
virtual void lock() = 0;
virtual
www.eeworm.com/read/444596/7611091
c incr_pxmutex5.c
/* include main */
#include "unpipc.h"
#define MAXNPROC 100
int nloop;
struct shared {
pthread_mutex_t mutex;
long counter;
} *shared; /* pointer; actual structure in shared memory */
void *
www.eeworm.com/read/246138/12753689
cpp workqueue.cpp
#include "stdafx.h"
#include "WorkQueue.h"
#include
typedef struct _THREAD_CONTEXT
{
CWorkQueue* pWorkQueue;
void* pThreadData;
} THREAD_CONTEXT,*PTHREAD_CONTEXT;
/*