AuroraRuntime/Source/Threading/Threads/AuSpawnThread.hpp

19 lines
508 B
C++
Raw Normal View History

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
2022-11-17 07:46:07 +00:00
File: AuSpawnThread.hpp
Date:
Author: Reece
***/
#pragma once
namespace Aurora::Threading::Threads
{
AuPair<bool, AuUInt> /*success, oshandle*/ SpawnThread(const AuFunction<void()> &entrypoint, const AuString &debugString, AuUInt32 staskSize = 0);
}
#if defined(AURORA_IS_MODERNNT_DERIVED)
2022-11-17 07:46:07 +00:00
#include "AuSpawnThread.NT.hpp"
#elif defined(AURORA_IS_UNIX_DERIVED)
2022-11-17 07:46:07 +00:00
#include "AuSpawnThread.Unix.hpp"
#endif