diff options
author | Rickard Green <[email protected]> | 2017-02-12 04:03:55 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-04-18 12:40:03 +0200 |
commit | 25e9f3abd395c26eccb7962acc47dffe90beec81 (patch) | |
tree | f515c6da22e281068baf29556edaacc8d938f70f /erts/emulator/beam/erl_time.h | |
parent | 2ed143ac11d858db728bfa69f14fb34d7f449305 (diff) | |
download | otp-25e9f3abd395c26eccb7962acc47dffe90beec81.tar.gz otp-25e9f3abd395c26eccb7962acc47dffe90beec81.tar.bz2 otp-25e9f3abd395c26eccb7962acc47dffe90beec81.zip |
Manage timers to trigger at once in a slot similar to other timers
Diffstat (limited to 'erts/emulator/beam/erl_time.h')
-rw-r--r-- | erts/emulator/beam/erl_time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_time.h b/erts/emulator/beam/erl_time.h index 699e69e991..46d6da6448 100644 --- a/erts/emulator/beam/erl_time.h +++ b/erts/emulator/beam/erl_time.h @@ -448,8 +448,7 @@ erts_time_unit_conversion(Uint64 value, void erts_sched_init_time_sup(ErtsSchedulerData *esdp); -#define ERTS_TWHEEL_SLOT_AT_ONCE -1 -#define ERTS_TWHEEL_SLOT_INACTIVE -2 +#define ERTS_TW_SLOT_INACTIVE (-2) /* ** Timer entry: @@ -481,7 +480,7 @@ ERTS_GLB_INLINE ErtsMonotonicTime erts_tweel_read_timeout(ErtsTWheelTimer *twt); ERTS_GLB_INLINE void erts_twheel_init_timer(ErtsTWheelTimer *p) { - p->slot = ERTS_TWHEEL_SLOT_INACTIVE; + p->slot = ERTS_TW_SLOT_INACTIVE; } ERTS_GLB_INLINE ErtsMonotonicTime erts_next_timeout_time(ErtsNextTimeoutRef nxt_tmo_ref) |