Allow to interrupt shader precompilation by stopping emulation

This commit is contained in:
Silent 2019-11-10 21:52:52 +01:00
commit dcad3ec892
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
3 changed files with 17 additions and 16 deletions

View file

@ -49,11 +49,9 @@ public:
bool HasPendingWork();
bool HasCompletedWork();
// Simpler version without progress updates.
void WaitUntilCompletion();
// Calls progress_callback periodically, with completed_items, and total_items.
void WaitUntilCompletion(const std::function<void(size_t, size_t)>& progress_callback);
// Returns false if interrupted.
bool WaitUntilCompletion(const std::function<void(size_t, size_t)>& progress_callback);
// Needed because of calling virtual methods in shutdown procedure.
bool StartWorkerThreads(u32 num_worker_threads);