You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: race condition between oc_main_poll_v1() and signal_event_loop()
Scenario:
(main thread) oc_main_poll_v1 call finishes and calculates that the next event should executes in 10seconds, execution of the thread is paused
(second thread) calls oc_process_poll(process) and _oc_signal_event_loop() // we expected the poll handler to wake the main thread and execute action in a very short time; since the main thread is on yet waiting on the condition variable the pthread_cond_signal call from signal_event_loop does nothing
(main thread) resumes execution and sleeps for 10secs and only then executes the process poll handler
Expected behavior:
call of oc_process_poll(process) and _oc_signal_event_loop() wakes up the main loop right away
Windows code suffers from the same issue
The text was updated successfully, but these errors were encountered:
Preconditions:
Issue: race condition between
oc_main_poll_v1()
andsignal_event_loop()
Scenario:
pthread_cond_signal
call fromsignal_event_loop
does nothingExpected behavior:
call of oc_process_poll(process) and _oc_signal_event_loop() wakes up the main loop right away
Windows code suffers from the same issue
The text was updated successfully, but these errors were encountered: