[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:
Ivan Stošić
2020-10-12 11:05:22 +02:00
committed by GitHub
parent 3807e98f23
commit 6161531376
3 changed files with 112 additions and 36 deletions

View File

@@ -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)