#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>
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 |
Definition in file env_pthread_interface.c.
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.