plastimatch
Loading...
Searching...
No Matches
src
base
threading.h
Go to the documentation of this file.
1
/* -----------------------------------------------------------------------
2
See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3
----------------------------------------------------------------------- */
4
#ifndef _threading_h_
5
#define _threading_h_
6
7
#include "
plmbase_config.h
"
8
#include <string>
9
10
/* GCS: You can't use enum types in mixed C / C++ code, because they
11
are not required to have the same size. Therefore, revert to #defines */
12
typedef
int
Threading
;
13
#define THREADING_UNKNOWN 0
14
#define THREADING_CPU_SINGLE 1
15
#define THREADING_CPU_OPENMP 2
16
#define THREADING_BROOK 3
17
#define THREADING_CUDA 4
18
#define THREADING_OPENCL 5
19
20
PLMBASE_API
Threading
threading_parse
(
const
std::string&
string
);
21
PLMBASE_API
Threading
threading_parse
(
const
char
*
string
);
22
23
#endif
plmbase_config.h
PLMBASE_API
#define PLMBASE_API
Definition
plmbase_config.h:19
threading_parse
Threading threading_parse(const std::string &string)
Definition
threading.cxx:10
Threading
int Threading
Definition
threading.h:12
Generated on Wed Oct 30 2024 14:54:42 for plastimatch by
1.11.0