summaryrefslogtreecommitdiff
path: root/Source/Core/Common/WorkQueueThread.h
AgeCommit message (Collapse)Author
2025-05-20WorkQueueThread: Fix Cancel() race with internal command queue.Jordan Woyak
2025-05-01Common: Add AsyncWorkThread.Jordan Woyak
2025-04-30WorkQueueThread: Cleanups. Implement in terms of WaitableSPSCQueue. Add ↵Jordan Woyak
single producer WorkQueueThreadSP.
2023-03-20WorkQueueThread: Fix WaitForCompletionRobin Kertels
2023-02-05Optimise cond_var predicate orderScott Mansell
m_items.empty() is by far the most likely reason for a notification.
2023-02-05Prevent WaitForCompletion shutdown deadlock.Scott Mansell
Adjust shutdown order to prevent potential deadlocks when one thread calls Shutdown, and another calls WaitForCompletion.
2023-02-05Address review feedbackScott Mansell
2023-02-04WorkQueueThread: provide name and function at same timeScott Mansell
2023-02-04WorkQueueThread: rework Cancel/Shutdown workflowScott Mansell
- Cancel doesn't shut down anymore. Allowing it to be used multiple times thoughout the life of the WorkQueue - Remove Clear, so we only have Cancel semantics - Add IsCancelling so work items can abort early if cancelling - Replace m_cancelled and m_thread.joinable() guars with m_shutdown. - Rename Flush to WaitForCompletion (As it's ambiguous if a function called flush should be blocking or not) - Add documentation
2023-02-04WorkQueueThread: Implement thread nameScott Mansell
Otherwise we will end up with a dozen threads named "WorkQueueThread"
2023-02-04WorkQueueThread: Rework without Flags/EventsRobin Kertels
2023-02-04WorkQueueThread: Implement proper FlushRobin Kertels
and rename the existing Flush to FlushOne.
2023-02-04WorkQueueThread: Add PushRobin Kertels
2023-02-04WorkQueueThread: Add flush capabilityScott Mansell
2022-10-01Common/WorkQueueThread: Make Shutdown() public, so users can wait for all ↵Admiral H. Curtiss
currently queued tasks to finish when shutting down the thread.
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2020-10-01Extended WorkQueueThread class with Clear(), Cancel() and IsCancelled().Christian Aguilera
2020-08-22name some threadsShawn Hoffman
2019-10-08Improvements to WorkQueueThreadSilent
- Do not use a lambda for std::thread as invoke constructor exists - Use simpler std::lock_guard wherever possible - Do not require T to be default constructible - Move T out of the queue instead of copying
2017-08-20GameTracker: use WorkQueueThreadMichael M
2017-08-20Common: add WorkQueueThreadMichael M