event/DeferEvent: split the thread-safe version into new class InjectEvent

This commit is contained in:
Max Kellermann
2020-12-01 16:25:11 +01:00
parent 1ecbc2ff0f
commit 774b4313f2
22 changed files with 226 additions and 68 deletions

View File

@@ -70,7 +70,7 @@ ThreadBackgroundCommand::Cancel() noexcept
CancelThread();
thread.Join();
/* cancel the DeferEvent, just in case the Thread has
/* cancel the InjectEvent, just in case the Thread has
meanwhile finished execution */
defer_finish.Cancel();
}