Go to the source code of this file.
Defines | |
| #define | VMD_THREADS_INC 1 |
Typedefs | |
| typedef int | vmd_thread_t |
| typedef int | vmd_mutex_t |
| typedef int | vmd_barrier_t |
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) |
| set the concurrency level and scheduling scope for threads. More... | |
| int | vmd_thread_create (vmd_thread_t *, void *routine(void *), void *) |
| create a thread. More... | |
| int | vmd_thread_join (vmd_thread_t, void **) |
| join (wait for completion of, and merge with) a thread. More... | |
| int | vmd_mutex_init (vmd_mutex_t *) |
| initialize a mutex. More... | |
| int | vmd_mutex_lock (vmd_mutex_t *) |
| lock a mutex. More... | |
| int | vmd_mutex_unlock (vmd_mutex_t *) |
| unlock a mutex. More... | |
| int | vmd_mutex_destroy (vmd_mutex_t *) |
| destroy a mutex. More... | |
| int | vmd_thread_barrier_init (vmd_barrier_t *, 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 22 of file VMDThreads.h. |
|
|
Definition at line 100 of file VMDThreads.h. Referenced by CaveScene::CaveScene, FreeVRScene::FreeVRScene, vmd_cpu_affinitylist, vmd_thread_barrier, vmd_thread_barrier_destroy, vmd_thread_barrier_init, and vmd_thread_numprocessors. |
|
|
Definition at line 99 of file VMDThreads.h. Referenced by bondsearchthread, vmd_bondsearch_thr, vmd_cpu_affinitylist, vmd_mutex_destroy, vmd_mutex_init, vmd_mutex_lock, vmd_mutex_unlock, and vmd_thread_numprocessors. |
|
|
Definition at line 98 of file VMDThreads.h. Referenced by find_within, measure_gofr, VMDCollab::startserver, vmd_bondsearch_thr, vmd_cpu_affinitylist, vmd_cuda_bus_bw, vmd_cuda_madd_gflops, vmd_cuda_vol_cpotential, vmd_thread_create, vmd_thread_join, and vol_cpotential_cpu. |
|
|
query CPU affinity of the VMD process (if allowed by host system).
Definition at line 118 of file VMDThreads.C. References vmd_barrier_t, vmd_mutex_t, and vmd_thread_t. Referenced by vmdinfo_tcl. |
|
|
destroy a mutex.
Definition at line 382 of file VMDThreads.C. Referenced by vmd_bondsearch_thr. |
|
|
initialize a mutex.
Definition at line 331 of file VMDThreads.C. Referenced by IMDSimThread::IMDSimThread, and vmd_bondsearch_thr. |
|
|
lock a mutex.
Definition at line 348 of file VMDThreads.C. Referenced by bondsearchthread, IMDSimThread::detach, IMDSimThread::get_next_ts, IMDSimThread::kill, IMDSimThread::pause, IMDSimThread::send_forces, IMDSimThread::set_transrate, and IMDSimThread::unpause. |
|
|
unlock a mutex.
Definition at line 365 of file VMDThreads.C. Referenced by bondsearchthread, IMDSimThread::detach, IMDSimThread::get_next_ts, IMDSimThread::kill, IMDSimThread::pause, IMDSimThread::send_forces, IMDSimThread::set_transrate, and IMDSimThread::unpause. |
|
||||||||||||
|
synchronize on a thread barrier.
Definition at line 407 of file VMDThreads.C. Referenced by FreeVRScene::draw, and CaveScene::draw. |
|
|
destroy a thread barrier.
Definition at line 404 of file VMDThreads.C. |
|
||||||||||||
|
initialize a thread barrier.
Definition at line 400 of file VMDThreads.C. Referenced by CaveScene::CaveScene, and FreeVRScene::FreeVRScene. |
|
||||||||||||||||
|
create a thread.
Definition at line 266 of file VMDThreads.C. Referenced by find_within, IMDSimThread::IMDSimThread, measure_gofr, VMDCollab::startserver, vmd_bondsearch_thr, vmd_cuda_bus_bw, vmd_cuda_madd_gflops, vmd_cuda_vol_cpotential, and vol_cpotential_cpu. |
|
||||||||||||
|
join (wait for completion of, and merge with) a thread.
Definition at line 304 of file VMDThreads.C. Referenced by find_within, measure_gofr, vmd_bondsearch_thr, vmd_cuda_bus_bw, vmd_cuda_madd_gflops, vmd_cuda_vol_cpotential, vol_cpotential_cpu, and IMDSimThread::~IMDSimThread. |
|
|
number of physical processors available.
Definition at line 57 of file VMDThreads.C. |
|
|
number of processors available, subject to user override.
Definition at line 91 of file VMDThreads.C. References vmd_barrier_t, and vmd_mutex_t. |
|
|
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