|
BRL-CAD
|
Go to the source code of this file.
Macros | |
| #define | MAX_PSW |
| #define | BU_SEMAPHORE_RESERVED_LIST(_entry) |
| semaphore implementation | |
| #define | BU_SEMAPHORE_RESERVED_ENUM(_id, _symbol, _name) BU_SEM_ID_ ## _symbol = _id, |
| #define | BU_SEMAPHORE_DEFINE(x) x = bu_semaphore_register(CPP_STR(x)) |
| #define | BU_SETJUMP setjmp((bu_setjmp_valid[bu_parallel_id()]=1, bu_jmpbuf[bu_parallel_id()])) |
| #define | BU_UNSETJUMP (bu_setjmp_valid[bu_parallel_id()]=0) |
Enumerations | |
| enum | bu_semaphore_reserved_id { BU_SEM_ID_NONE = 0 , BU_SEM_DYNAMIC_BASE = 64 } |
Functions | |
| DEPRECATED int | bu_is_parallel (void) |
| subroutine to determine if we are multi-threaded | |
| int | bu_parallel_id (void) |
| int | bu_thread_id (void) |
| void | bu_nice_set (int newnice) |
| routines for parallel processing | |
| size_t | bu_avail_cpus (void) |
| void | bu_parallel (void(*func)(int func_cpu_id, void *func_data), size_t ncpu, void *data) |
| int | bu_semaphore_register (const char *name) |
| void | bu_semaphore_init (unsigned int nsemaphores) |
| void | bu_semaphore_free (void) |
| void | bu_semaphore_acquire (unsigned int i) |
| void | bu_semaphore_release (unsigned int i) |
Variables | |
| int | BU_SEM_GENERAL |
| int | BU_SEM_SYSCALL |
| int | BU_SEM_MAPPEDFILE |
| int | bu_setjmp_valid [MAX_PSW] |
| jmp_buf | bu_jmpbuf [MAX_PSW] |
Definition at line 232 of file parallel.h.