Bullet Collision Detection & Physics Library
Classes | Macros | Functions | Variables
PosixThreadSupport.cpp File Reference
#include <stdio.h>
#include "PosixThreadSupport.h"
#include <errno.h>
#include <unistd.h>
#include "SpuCollisionTaskProcess.h"
#include "SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h"
Include dependency graph for PosixThreadSupport.cpp:

Go to the source code of this file.

Classes

class  PosixCriticalSection
 
class  PosixBarrier
 

Macros

#define checkPThreadFunction(returnValue)
 

Functions

static sem_t * createSem (const char *baseName)
 
static void destroySem (sem_t *semaphore)
 
static void * threadFunction (void *argument)
 

Variables

static sem_t * mainSemaphore =0
 

Macro Definition Documentation

#define checkPThreadFunction (   returnValue)
Value:
if(0 != returnValue) { \
printf("PThread problem at line %i in file %s: %i %d\n", __LINE__, __FILE__, returnValue, errno); \
}

Definition at line 25 of file PosixThreadSupport.cpp.

Function Documentation

static sem_t* createSem ( const char *  baseName)
static

Definition at line 53 of file PosixThreadSupport.cpp.

static void destroySem ( sem_t *  semaphore)
static

Definition at line 79 of file PosixThreadSupport.cpp.

static void* threadFunction ( void *  argument)
static

Definition at line 89 of file PosixThreadSupport.cpp.

Variable Documentation

sem_t* mainSemaphore =0
static

Definition at line 51 of file PosixThreadSupport.cpp.