diff options
author | Björn-Egil Dahlberg <[email protected]> | 2017-03-20 11:49:15 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2017-03-20 11:49:15 +0100 |
commit | 303f4781e485f66e1eb6c5db77ff9523e5f69b7e (patch) | |
tree | 9bafaa4324acb0aed8020bd70290c0ad0c813109 /erts/emulator/beam/erl_async.h | |
parent | 748c2d938d309940b8365ed4f6af863b8129c5bf (diff) | |
download | otp-303f4781e485f66e1eb6c5db77ff9523e5f69b7e.tar.gz otp-303f4781e485f66e1eb6c5db77ff9523e5f69b7e.tar.bz2 otp-303f4781e485f66e1eb6c5db77ff9523e5f69b7e.zip |
erts: Fix erl_async include files for no-threads
Diffstat (limited to 'erts/emulator/beam/erl_async.h')
-rw-r--r-- | erts/emulator/beam/erl_async.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_async.h b/erts/emulator/beam/erl_async.h index 473c7686e5..c884a5040d 100644 --- a/erts/emulator/beam/erl_async.h +++ b/erts/emulator/beam/erl_async.h @@ -27,7 +27,6 @@ extern int erts_async_max_threads; #define ERTS_ASYNC_THREAD_MAX_STACK_SIZE 8192 /* Kilo words */ extern int erts_async_thread_suggested_stack_size; -#ifdef USE_THREADS #ifdef ERTS_SMP /* @@ -47,6 +46,10 @@ extern int erts_async_thread_suggested_stack_size; # define ERTS_USE_ASYNC_READY_Q 0 #endif +#ifndef USE_THREADS +# undef ERTS_USE_ASYNC_READY_Q +# define ERTS_USE_ASYNC_READY_Q 0 +#endif /* !USE_THREADS */ #if ERTS_USE_ASYNC_READY_Q int erts_check_async_ready(void *); int erts_async_ready_clean(void *, void *); @@ -58,10 +61,7 @@ void *erts_get_async_ready_queue(Uint sched_id); #endif #endif /* ERTS_USE_ASYNC_READY_Q */ -#endif /* USE_THREADS */ - void erts_init_async(void); void erts_exit_flush_async(void); - #endif /* ERL_ASYNC_H__ */ |