mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[FancyZones] Responsive drawing (#7125)
* Made drawing zones not clog message processing * Fixed synchronization bugs * call BufferedPaintInit * Some refactoring, the animation is back * Rename a function * Align parameters
This commit is contained in:
@@ -16,6 +16,14 @@ std::future<void> OnThreadExecutor::submit(task_t task)
|
||||
return future;
|
||||
}
|
||||
|
||||
void OnThreadExecutor::cancel()
|
||||
{
|
||||
std::lock_guard lock{ _task_mutex };
|
||||
_task_queue = {};
|
||||
_task_cv.notify_one();
|
||||
}
|
||||
|
||||
|
||||
void OnThreadExecutor::worker_thread()
|
||||
{
|
||||
while (!_shutdown_request)
|
||||
|
||||
Reference in New Issue
Block a user