116 lines
4.1 KiB
C++
116 lines
4.1 KiB
C++
/***
|
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: RuntimeAliases.hpp
|
|
Date: 2023-12-1
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace AuAsync = Aurora::Async;
|
|
namespace AuBuild = Aurora::Build;
|
|
namespace AuCompression = Aurora::Compression;
|
|
namespace AuConsole = Aurora::Console;
|
|
namespace AuCmdLine = Aurora::CmdLine;
|
|
namespace AuCrypto = Aurora::Crypto;
|
|
namespace AuData = Aurora::Data;
|
|
namespace AuDebug = Aurora::Debug;
|
|
namespace AuThreading = Aurora::Threading;
|
|
namespace AuThreadPrimitives = Aurora::Threading::Primitives;
|
|
namespace AuThreads = Aurora::Threading::Threads;
|
|
namespace AuHwInfo = Aurora::HWInfo;
|
|
namespace AuSwInfo = Aurora::SWInfo;
|
|
namespace AuHWInfo = Aurora::HWInfo;
|
|
namespace AuSWInfo = Aurora::SWInfo;
|
|
|
|
namespace AuIO = Aurora::IO;
|
|
namespace AuIOFS = Aurora::IO::FS;
|
|
namespace AuIONet = Aurora::IO::Net;
|
|
namespace AuIOIPC = Aurora::IO::IPC;
|
|
namespace AuIOLoop = Aurora::IO::Loop;
|
|
namespace AuIOProtocol = Aurora::IO::Protocol;
|
|
|
|
// Legacy shorthands; wont deprecate
|
|
namespace AuIPC = Aurora::IO::IPC;
|
|
namespace AuLoop = Aurora::IO::Loop;
|
|
namespace AuNet = Aurora::IO::Net;
|
|
namespace AuFS = Aurora::IO::FS;
|
|
namespace AuProtocol = Aurora::IO::Protocol;
|
|
|
|
namespace AuRng = Aurora::RNG;
|
|
namespace AuRNG = Aurora::RNG;
|
|
namespace AuLocale = Aurora::Locale;
|
|
namespace AuParse = Aurora::Parse;
|
|
namespace AuProcess = Aurora::Process;
|
|
namespace AuProcesses = Aurora::Processes;
|
|
namespace AuTelemetry = Aurora::Telemetry;
|
|
namespace AuTime = Aurora::Time;
|
|
namespace AuTypes = Aurora::Types;
|
|
namespace AuLog = Aurora::Logging;
|
|
namespace AuMemory = Aurora::Memory;
|
|
namespace AuHashing = Aurora::Hashing;
|
|
namespace AuExit = Aurora::Exit;
|
|
|
|
using AuWorkerId_t = AuAsync::WorkerId_t;
|
|
using AuWorkerPId_t = AuAsync::WorkerPId_t;
|
|
using AuWorkerId = AuAsync::WorkerId_t;
|
|
using AuWorkerPId = AuAsync::WorkerPId_t;
|
|
using AuWorkerID = AuAsync::WorkerPId_t;
|
|
|
|
using AuByteBuffer = AuMemory::ByteBuffer;
|
|
|
|
using AuMemoryViewRead = AuMemory::MemoryViewRead;
|
|
using AuMemoryViewWrite = AuMemory::MemoryViewWrite;
|
|
using AuMemoryViewStreamRead = AuMemory::MemoryViewStreamRead;
|
|
using AuMemoryViewStreamWrite = AuMemory::MemoryViewStreamWrite;
|
|
|
|
#if defined(AURORA_RUNTIME_BAD_PLATFORM_FORCE_FUTEX_MUTEX_SEMAPHORE_IN_CLIENT)
|
|
using AuMutex = AuThreading::Waitables::FutexWaitable;
|
|
using AuSemaphore = AuThreading::Waitables::FutexSemaphoreWaitable;
|
|
#else
|
|
using AuMutex = AuThreadPrimitives::Mutex;
|
|
using AuSemaphore = AuThreadPrimitives::Semaphore;
|
|
#endif
|
|
|
|
using AuRenterableMutex = AuThreadPrimitives::CriticalSection;
|
|
using AuCriticalSection = AuThreadPrimitives::CriticalSection;
|
|
using AuRWRenterableLock = AuThreadPrimitives::RWRenterableLock;
|
|
using AuRWLock = AuThreadPrimitives::RWLock;
|
|
using AuCond = AuThreadPrimitives::ConditionVariable;
|
|
using AuConditionVariable = AuThreadPrimitives::ConditionVariable;
|
|
using AuConditionMutex = AuThreadPrimitives::ConditionMutex;
|
|
using AuCondition = AuThreadPrimitives::ConditionVariable;
|
|
using AuCondMutex = AuThreadPrimitives::ConditionMutex;
|
|
using AuSpinLock = AuThreadPrimitives::SpinLock;
|
|
using AuCondEx = AuThreadPrimitives::FlexibleConditionVariable;
|
|
using AuFlexibleConditionVariable = AuThreadPrimitives::FlexibleConditionVariable;
|
|
using AuConditionEx = AuThreadPrimitives::FlexibleConditionVariable;
|
|
using AuBinarySemaphore = AuThreadPrimitives::Event;
|
|
using AuEvent = AuThreadPrimitives::Event;
|
|
|
|
using AuFutexMutex = AuThreading::Waitables::FutexWaitable;
|
|
using AuFutexSemaphore = AuThreading::Waitables::FutexSemaphoreWaitable;
|
|
using AuFutexCond = AuThreading::Waitables::FutexCondWaitable;
|
|
using AuFutexCondition = AuThreading::Waitables::FutexCondWaitable;
|
|
using AuFutexBarrier = AuThreading::Waitables::FutexBarrier;
|
|
|
|
using AuBarrier = AuThreading::Waitables::FutexBarrier;
|
|
|
|
using AuInitOnce = AuThreading::InitOnce;
|
|
using AuInitOnceSmall = __audetail::InitOnceABI;
|
|
|
|
template<typename T, bool bIsStatic = false>
|
|
using AuTLSVariable = AuThreads::TLSVariable<T, bIsStatic>;
|
|
|
|
using AuIOHandle = AuIO::IOHandle;
|
|
using AuSharedIOHandle = AuSPtr<AuIO::IOHandle>;
|
|
|
|
static bool AuIsThreadRunning()
|
|
{
|
|
return !AuThreads::GetThread()->Exiting();
|
|
}
|
|
|
|
static inline void AuDebugBreak()
|
|
{
|
|
AuDebug::DebugBreak();
|
|
} |