Skip to content

Commit

Permalink
chore: really_assert for EventDispatcher instance for TickOnInterrupt…
Browse files Browse the repository at this point in the history
…TimerService construction (#764)

TickOnInterruptTimerService: really_assert for  EventDispatcher instance
  • Loading branch information
oguzcanoguz authored Nov 11, 2024
1 parent 863c4f2 commit 1bdab11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infra/timer/TickOnInterruptTimerService.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "infra/timer/TickOnInterruptTimerService.hpp"
#include "infra/event/EventDispatcher.hpp"
#include "infra/util/ReallyAssert.hpp"
#include <cassert>

namespace infra
Expand All @@ -8,6 +9,8 @@ namespace infra
: TimerService(id)
, resolution(resolution)
{
really_assert(infra::EventDispatcher::InstanceSet());

CalculateNextTrigger();
}

Expand Down

0 comments on commit 1bdab11

Please sign in to comment.