Reece
99c5e1fa65
[*] Split up Aurora Async [*] Split Async app into seperate ThreadPool concept [*] Fix various OSThread bugs and tls transfer issues [*] Set default affinity to 0xFFFFFFFF [*] Update Build script [+] Add AuTuplePopFront [+] New Network Interface (unimplemented) [*] Stub out the interfaces required for a better logger [*] Fix Win32 ShellExecute bug; windows 11 struggles without explicit com init per the docs - now deferring to thread pool [*] Update gitignore [*] Follow XDG home standard [*] Refactor some namespaces to use the shorthand aliases [*] Various stability fixes
29 lines
653 B
C++
29 lines
653 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Process.cpp
|
|
Date: 2021-8-20
|
|
Author: Reece
|
|
***/
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include "Process.hpp"
|
|
#if defined(AURORA_IS_POSIX_DERIVED)
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
namespace Aurora::Process
|
|
{
|
|
AUKN_SYM void Exit(AuUInt32 exitcode)
|
|
{
|
|
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
|
ExitProcess(exitcode);
|
|
#elif defined(AURORA_IS_POSIX_DERIVED)
|
|
exit(exitcode);
|
|
#else
|
|
// ???
|
|
*(AuUInt32 *)0 = exitcode;
|
|
*(AuUInt32 *)0xFFFF = exitcode;
|
|
*(AuUInt32 *)0xFFFFFFFF = exitcode;
|
|
#endif
|
|
}
|
|
} |