openModeller  Version 1.4.0
garp_run_thread.hh File Reference
#include <pthread.h>
#include <sys/resource.h>
Include dependency graph for garp_run_thread.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()

Detailed Description

Definition of preprocessor symbols for thread management in GARPBS

Author:
Ricardo Scachetti Pereira (rpereira@ku.edu)
Date:
2004-08-25
Id:
threads.hh 1112 2005-08-18 19:17:10Z scachett

LICENSE INFORMATION

Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.

http://www.nhm.ku.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition of preprocessor symbols for thread management in GARPBS

Author:
Ricardo Scachetti Pereira (rpereira@ku.edu)
Date:
2004-08-25
Id:
garp_run_thread.hh 1112 2005-08-18 19:17:10Z scachett

LICENSE INFORMATION

Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.

http://www.nhm.ku.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition in file garp_run_thread.hh.


Define Documentation

#define THREAD_END ( )
Value:
{ int status;\
   pthread_exit(&status); }

Definition at line 66 of file garp_run_thread.hh.

#define THREAD_PROC_RETURN_STATEMENT   return (NULL);

Definition at line 57 of file garp_run_thread.hh.

#define THREAD_PROC_RETURN_TYPE   void *

Definition at line 56 of file garp_run_thread.hh.

#define THREAD_REDUCE_PRIORITY ( )    { setpriority(PRIO_PROCESS, getpid(), 10); }

Definition at line 59 of file garp_run_thread.hh.

#define THREAD_START (   threadProc,
  threadData 
)
Value:
{ pthread_t pthread;\
   pthread_create(&pthread, NULL, threadProc, threadData); }

Definition at line 62 of file garp_run_thread.hh.