aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2012-04-18 17:26:24 +0200
committerRickard Green <[email protected]>2012-04-18 17:26:24 +0200
commit2e6bbeeca790b4e1f4c3096be8e045d2c98ca92d (patch)
tree45fdecfd135909bf40c55c28a6ae926b342b52bc /erts/emulator/beam
parentcfea5eea406ba3af96588ff458e55de9a149d9c5 (diff)
downloadotp-2e6bbeeca790b4e1f4c3096be8e045d2c98ca92d.tar.gz
otp-2e6bbeeca790b4e1f4c3096be8e045d2c98ca92d.tar.bz2
otp-2e6bbeeca790b4e1f4c3096be8e045d2c98ca92d.zip
Clear number of async threads if no thread support
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index ca4385dd3a..c8c9ff768d 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -790,6 +790,10 @@ early_init(int *argc, char **argv) /*
}
}
+#ifndef USE_THREADS
+ erts_async_max_threads = 0;
+#endif
+
#ifdef ERTS_SMP
no_schedulers = schdlrs;
no_schedulers_online = schdlrs_onln;