openModeller  Version 1.4.0
threads.hh File Reference
#include <pthread.h>
#include <sys/resource.h>
Include dependency graph for threads.hh:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define THREAD_END ( )
Value:
{ 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 
)
Value:
{ pthread_t pthread;\
   pthread_create(&pthread, NULL, threadProc, threadData); }

Definition at line 62 of file threads.hh.

Referenced by AlgorithmRun::run().