4ef1ec580a
getenv is not threadsafe and (maybe as a result) it's randomly crashing with CFLAGS=-g and RUST_THREADS=32. Calls from rust code are still on their own.
12 lines
224 B
C
12 lines
224 B
C
struct rust_env {
|
|
size_t num_sched_threads;
|
|
size_t min_stack_size;
|
|
char* logspec;
|
|
bool check_claims;
|
|
bool detailed_leaks;
|
|
char* rust_seed;
|
|
};
|
|
|
|
rust_env* load_env();
|
|
void free_env(rust_env *rust_env);
|