etl icon indicating copy to clipboard operation
etl copied to clipboard

unit tests of callback_timer_locked - inconsistence with timer design

Open KammutierSpule opened this issue 5 months ago • 6 comments

test_callback_timer_locked.cpp

It tests timer in a way that is not possible to be used.

    void callback2()
    {
      tick_list.push_back(ticks);

      p_controller->start(2);
      p_controller->start(1);
    }

callback2 calls start() (which has lock/unlock), while callback2 itself is called on a tick() (which is lock too). This would call a deadlock.

Relates to https://github.com/ETLCPP/etl/issues/952

KammutierSpule avatar Sep 08 '24 10:09 KammutierSpule