openModeller
Version 1.4.0
|
#include <pthread.h>
#include <sys/resource.h>
Go to the source code of this file.
Defines | |
#define | THREAD_PROC_RETURN_TYPE void * |
#define | THREAD_PROC_RETURN_STATEMENT return (NULL); |
#define | THREAD_REDUCE_PRIORITY() { setpriority(PRIO_PROCESS, getpid(), 10); } |
#define | THREAD_START(threadProc, threadData) |
#define | THREAD_END() |
#define THREAD_END | ( | ) |
{ int status;\
pthread_exit(&status); }
Definition at line 66 of file threads.hh.
Referenced by AlgorithmRun::finalize(), and AlgorithmRun::stop().
#define THREAD_PROC_RETURN_STATEMENT return (NULL); |
Definition at line 57 of file threads.hh.
Referenced by AlgorithmRunThreadProc().
#define THREAD_PROC_RETURN_TYPE void * |
Definition at line 56 of file threads.hh.
#define THREAD_REDUCE_PRIORITY | ( | ) | { setpriority(PRIO_PROCESS, getpid(), 10); } |
Definition at line 59 of file threads.hh.
#define THREAD_START | ( | threadProc, | |
threadData | |||
) |
{ pthread_t pthread;\ pthread_create(&pthread, NULL, threadProc, threadData); }
Definition at line 62 of file threads.hh.
Referenced by AlgorithmRun::run().