diff options
author | Lukas Larsson <[email protected]> | 2014-01-29 14:38:56 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-02-24 15:16:05 +0100 |
commit | ff463a10f37ca74c0b6a8c0e24ce919e56b12bb8 (patch) | |
tree | c40571670df39e3397d8c7da4a781659e802fb09 /erts/emulator/sys/ose | |
parent | 31c4876582acf42f77f65f0d822d4d224d642364 (diff) | |
download | otp-ff463a10f37ca74c0b6a8c0e24ce919e56b12bb8.tar.gz otp-ff463a10f37ca74c0b6a8c0e24ce919e56b12bb8.tar.bz2 otp-ff463a10f37ca74c0b6a8c0e24ce919e56b12bb8.zip |
ose: Add fair scheduling yields
This is needed on OSs that do not do round robin scheduling
of threads.
Diffstat (limited to 'erts/emulator/sys/ose')
-rw-r--r-- | erts/emulator/sys/ose/erl_ose_sys.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/sys/ose/erl_ose_sys.h b/erts/emulator/sys/ose/erl_ose_sys.h index db8607b650..cd66d95c26 100644 --- a/erts/emulator/sys/ose/erl_ose_sys.h +++ b/erts/emulator/sys/ose/erl_ose_sys.h @@ -41,8 +41,9 @@ #include "ethread.h" /* FIXME: configuration options */ -#define ERTS_SCHED_MIN_SPIN -#define ERTS_SCHED_ONLY_POLL_SCHED_1 +#define ERTS_SCHED_MIN_SPIN 1 +#define ERTS_SCHED_ONLY_POLL_SCHED_1 1 +#define ERTS_SCHED_FAIR 1 #define NO_SYSCONF 1 #define OPEN_MAX FOPEN_MAX |