Skip to content
  • Guillaume Roguez's avatar
    threadloop: fix race condition in get_id access · efd4a93a
    Guillaume Roguez authored
    threadloop::get_id() can be called with a non-initialized thread_ variable.
    If this call is done under the loop thread, right after its creation,
    and if InterruptedThreadLoop::wait_for is call, an non catched exception
    is thrown and std::terminate stops all the application.
    This patch proposes to fix this race condition and fix the non-catched
    exception to let the application in a safe state.
    
    Issue: #81210
    Change-Id: I3d8409ac505be181d1a54c5bdd0e679fdb81bf88
    efd4a93a