This fixes segfaults as well as corrupt listes when copy/pasting due to invalid iterators. ::mark_dirty() must be called with WriterLock, and ::rt_safe_earliest_event_linear_unlocked() must not be called while _events is being modified. The Sequence iterator (only user of that function) does not ensure this. Only the sequence read-lock is taken.
51 KiB
51 KiB