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
- Remove signal parameter from add_to_queue. The parameter was false
only to support an internal usage, external users should always
alert the thread loop;
- Do not use ">" or other operators to compare Mtime.t, the value
is intended to be unsigned and should be compared with
Int64.unsigned_compare as Mtime functions do;
- Limit mutex contention in add_to_queue;
- Protect queue with mutex in remove_from_queue;
- Do not wait huge amount of time if the queue is empty but
use Delay.wait if possible;
- Fix delete of periodic events. In case the event is processed
it's removed from the queue. Previously remove_from_queue was
not able to mark this event as removed;
- Do not race between checking the first event and removing it.
These 2 actions were done in 2 separate critical section, now
they are done in a single one.
Signed-off-by: Frediano Ziglio <[email protected]>
0 commit comments