20 lines
495 B
C++
20 lines
495 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: SpawnThread.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)
|
||
|
#include "SpawnThread.NT.hpp"
|
||
|
#elif defined(AURORA_IS_UNIX_DERIVED)
|
||
|
#include "SpawnThread.Unix.hpp"
|
||
|
#endif
|