libobs: Add task scheduling features

(This commit also modifies the UI)

Adds the ability to schedule tasks for certain threads
This commit is contained in:
jp9000
2020-03-14 10:39:24 -07:00
parent 9f00350688
commit 8de20ab3be
6 changed files with 142 additions and 0 deletions

View File

@@ -2267,6 +2267,9 @@ void OBSBasic::ClearHotkeys()
OBSBasic::~OBSBasic()
{
/* clear out UI event queue */
QApplication::sendPostedEvents(App());
if (updateCheckThread && updateCheckThread->isRunning())
updateCheckThread->wait();