aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_time.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-02-12 04:03:55 +0100
committerRickard Green <[email protected]>2017-04-18 12:40:03 +0200
commit25e9f3abd395c26eccb7962acc47dffe90beec81 (patch)
treef515c6da22e281068baf29556edaacc8d938f70f /erts/emulator/beam/erl_time.h
parent2ed143ac11d858db728bfa69f14fb34d7f449305 (diff)
downloadotp-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.h5
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)