#include <stdlib.h>#include <stdio.h>#include "VMDThreads.h"Go to the source code of this file.
Typedefs | |
| typedef void *(* | VMDTHREAD_START_ROUTINE )(void *) |
Functions | |
| int | vmd_thread_numphysprocessors (void) |
| number of physical processors available. More... | |
| int | vmd_thread_numprocessors (void) |
| number of processors available, subject to user override. More... | |
| int * | vmd_cpu_affinitylist (int *cpuaffinitycount) |
| query CPU affinity of the VMD process (if allowed by host system). More... | |
| int | vmd_thread_set_self_cpuaffinity (int cpu) |
| set the CPU affinity of the current thread (if allowed by host system). More... | |
| int | vmd_thread_setconcurrency (int nthr) |
| set the concurrency level and scheduling scope for threads. More... | |
| int | vmd_thread_create (vmd_thread_t *thr, void *routine(void *), void *arg) |
| create a thread. More... | |
| int | vmd_thread_join (vmd_thread_t thr, void **stat) |
| join (wait for completion of, and merge with) a thread. More... | |
| int | vmd_mutex_init (vmd_mutex_t *mp) |
| initialize a mutex. More... | |
| int | vmd_mutex_lock (vmd_mutex_t *mp) |
| lock a mutex. More... | |
| int | vmd_mutex_unlock (vmd_mutex_t *mp) |
| unlock a mutex. More... | |
| int | vmd_mutex_destroy (vmd_mutex_t *mp) |
| destroy a mutex. More... | |
| int | vmd_thread_barrier_init (vmd_barrier_t *barrier, int n_clients) |
| initialize a thread barrier. More... | |
| void | vmd_thread_barrier_destroy (vmd_barrier_t *barrier) |
| destroy a thread barrier. More... | |
| int | vmd_thread_barrier (vmd_barrier_t *barrier, int increment) |
| synchronize on a thread barrier. More... | |
|
|
Definition at line 263 of file VMDThreads.C. Referenced by vmd_thread_create. |
|
|
query CPU affinity of the VMD process (if allowed by host system).
Definition at line 118 of file VMDThreads.C. References NULL. |
|
|
destroy a mutex.
Definition at line 382 of file VMDThreads.C. References vmd_mutex_t. |
|
|
initialize a mutex.
Definition at line 331 of file VMDThreads.C. References NULL, and vmd_mutex_t. |
|
|
lock a mutex.
Definition at line 348 of file VMDThreads.C. References vmd_mutex_t. |
|
|
unlock a mutex.
Definition at line 365 of file VMDThreads.C. References vmd_mutex_t. |
|
||||||||||||
|
synchronize on a thread barrier.
Definition at line 407 of file VMDThreads.C. References vmd_barrier_t. |
|
|
destroy a thread barrier.
Definition at line 404 of file VMDThreads.C. References vmd_barrier_t. |
|
||||||||||||
|
initialize a thread barrier.
Definition at line 400 of file VMDThreads.C. References vmd_barrier_t. |
|
||||||||||||||||
|
create a thread.
Definition at line 266 of file VMDThreads.C. References NULL, vmd_thread_t, and VMDTHREAD_START_ROUTINE. |
|
||||||||||||
|
join (wait for completion of, and merge with) a thread.
Definition at line 304 of file VMDThreads.C. References NULL, and vmd_thread_t. |
|
|
number of physical processors available.
Definition at line 57 of file VMDThreads.C. Referenced by vmd_thread_numprocessors. |
|
|
number of processors available, subject to user override.
Definition at line 91 of file VMDThreads.C. References NULL, and vmd_thread_numphysprocessors. Referenced by find_within, vmd_bondsearch_thr, vmd_cuda_vol_cpotential, vmdinfo_tcl, VMDinitialize, and vol_cpotential_cpu. |
|
|
set the CPU affinity of the current thread (if allowed by host system).
Definition at line 207 of file VMDThreads.C. |
|
|
set the concurrency level and scheduling scope for threads.
Definition at line 239 of file VMDThreads.C. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002