env_pthread_interface.c File Reference

#include "Envision/env_pthread_interface.h"
#include "Envision/env_alloc.h"
#include "Envision/env_job_server.h"
#include "Envision/env_log.h"
#include <pthread.h>
#include <stdlib.h>
Include dependency graph for env_pthread_interface.c:

Go to the source code of this file.

Functions

static void mutex_lock (void *p)
static void mutex_unlock (void *p)
static void * pthread_job_server_thread_func (void *env_job_pointer)
static void pthread_job_server (void *job_server_data, const struct env_job *jobs, const env_size_t njobs)
void env_init_pthread_alloc (void)
 Call this before env_allocation_init() if you want to set up multi-thread safe memory allocation.
void env_init_pthread_job_server (void)
 Call this to install a pthread job server with env_set_job_server().

Variables

static pthread_mutex_t g_alloc_mutex = PTHREAD_MUTEX_INITIALIZER

Detailed Description

Definition in file env_pthread_interface.c.


Function Documentation

void env_init_pthread_alloc ( void   ) 

Call this before env_allocation_init() if you want to set up multi-thread safe memory allocation.

Definition at line 109 of file env_pthread_interface.c.

References env_allocation_init_mutex_funcs().

Referenced by EnvVisualCortexBase::paramChanged().

void env_init_pthread_job_server ( void   ) 

Call this to install a pthread job server with env_set_job_server().

Definition at line 117 of file env_pthread_interface.c.

Generated on Sun May 8 08:11:56 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3