• Tomasz Miąsko's avatar
    mainloop-test: Fix race conditions · 88f36a1d
    Tomasz Miąsko authored
    * Wait for adder threads before deallocating crawler_array and
      context_array to avoid use after-free and data race.
    * Handle spurious wakeups around g_cond_wait.
    * Avoid starting recurser_idle without context.
    
    Fixes issue #1530.
    88f36a1d
mainloop-test.c 9.14 KB