Initial release

This commit is contained in:
civ
2026-08-16 18:24:52 +07:00
commit 876886a39a
13244 changed files with 2353959 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "tasks.h"
#include "platform/platformfactory.h"
//------------------------------------------------------------------------
namespace VSTGUI {
namespace Tasks {
//------------------------------------------------------------------------
const Queue& mainQueue () { return getPlatformFactory ().getTaskExecutor ().getMainQueue (); }
//------------------------------------------------------------------------
const Queue& backgroundQueue ()
{
return getPlatformFactory ().getTaskExecutor ().getBackgroundQueue ();
}
//------------------------------------------------------------------------
Queue makeSerialQueue (const char* name)
{
return getPlatformFactory ().getTaskExecutor ().makeSerialQueue (name);
}
//------------------------------------------------------------------------
void releaseSerialQueue (const Queue& queue)
{
getPlatformFactory ().getTaskExecutor ().releaseSerialQueue (queue);
}
//------------------------------------------------------------------------
void schedule (const Queue& queue, Task&& task)
{
getPlatformFactory ().getTaskExecutor ().schedule (queue, std::move (task));
}
//------------------------------------------------------------------------
void waitAllTasksExecuted (const Queue& queue)
{
getPlatformFactory ().getTaskExecutor ().waitAllTasksExecuted (queue);
}
//------------------------------------------------------------------------
} // Tasks
} // VSTGUI