Skip to content
  • Philippe Gerum's avatar
    copperplate/threadobj: do not assume timer_id cannot be zero · fe91ab09
    Philippe Gerum authored
    Unlike glibc, libcobalt may return zero as a valid timer id. Use a
    threadobj status flag to figure out whether a periodic timer was set
    for the thread, instead of testing periodic_timer for NULLness.
    This fixes set_periodic/wait_period services which have been broken
    since commit #73de42cc was merged.