diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-06-15 14:57:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | abe41cc2d5413faa8adeb16831f654435b6d0ef0 (patch) | |
tree | 3e08fe7d1857296ab9e41b5184b79005225361a5 /include | |
parent | 829e0174acac0adee10595cc04dd32cb64753107 (diff) |
Add compiler option for number of threads to use (instead of env)
Diffstat (limited to 'include')
-rw-r--r-- | include/compiler_options.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compiler_options.h b/include/compiler_options.h index 1854372..e9ac6e2 100644 --- a/include/compiler_options.h +++ b/include/compiler_options.h @@ -6,6 +6,8 @@ typedef void(*amal_compiler_error_callback)(const char *err_msg, int err_msg_len typedef struct { amal_compiler_error_callback error_callback; void *error_callback_userdata; + /* Number of threads to use. If 0, use the number of threads available on the system */ + unsigned int num_threads; } amal_compiler_options; #endif |