AuroraRuntime/Source/IO/IO.cpp

41 lines
736 B
C++
Executable File

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IO.cpp
Date: 2022-4-14
Author: Reece
***/
#include <Source/RuntimeInternal.hpp>
#include "IO.hpp"
#if defined(AURORA_IS_POSIX_DERIVED)
#include "UNIX/UnixIO.hpp"
#endif
#if defined(AURORA_IS_LINUX_DERIVED)
#include "UNIX/IOSubmit.Linux.hpp"
#endif
namespace Aurora::IO
{
void Init()
{
#if defined(AURORA_IS_POSIX_DERIVED)
UNIX::InitUnixIO();
#endif
}
void Deinit()
{
#if defined(AURORA_IS_POSIX_DERIVED)
UNIX::DeinitUnixIO();
#endif
}
AUKN_SYM void SendBatched()
{
#if defined(AURORA_IS_LINUX_DERIVED)
UNIX::SendIOBuffers();
#endif
}
}