aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2017-03-20 11:49:15 +0100
committerBjörn-Egil Dahlberg <[email protected]>2017-03-20 11:49:15 +0100
commit303f4781e485f66e1eb6c5db77ff9523e5f69b7e (patch)
tree9bafaa4324acb0aed8020bd70290c0ad0c813109 /erts/emulator/beam
parent748c2d938d309940b8365ed4f6af863b8129c5bf (diff)
downloadotp-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')
-rw-r--r--erts/emulator/beam/erl_async.h8
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__ */