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() |
Definition of preprocessor symbols for thread management in GARPBS
LICENSE INFORMATION
Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.
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
LICENSE INFORMATION
Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.
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 THREAD_END | ( | ) |
{ 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 | |||
) |
{ pthread_t pthread;\ pthread_create(&pthread, NULL, threadProc, threadData); }
Definition at line 62 of file garp_run_thread.hh.