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
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Commands.hpp
|
|
Date: 2021-6-10
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include <Aurora/Parse/Parse.hpp>
|
|
|
|
namespace Aurora::Async
|
|
{
|
|
struct WorkerId_t;
|
|
struct WorkerPId_t;
|
|
}
|
|
|
|
#include "ICommandSubscriber.hpp"
|
|
|
|
namespace Aurora::Console::Commands
|
|
{
|
|
AUKN_SYM void AddCommand(const AuString &tag, const Parse::ParseObject &commandStructure, const AuSPtr<ICommandSubscriber> &subscriber);
|
|
|
|
/**
|
|
* Dispatch a command to the main thread or aurora async overloaded command dispatcher thread worker id
|
|
*/
|
|
AUKN_SYM bool DispatchCommand(const AuString &string);
|
|
|
|
/**
|
|
* Parses `string` and dispatches the parsed command on the current thread instantly
|
|
*/
|
|
AUKN_SYM bool DispatchCommandThisThread(const AuString &string);
|
|
|
|
/**
|
|
* Parses `string` on the current thread and then schedules the ICommandSubscriber callback on the specified thread
|
|
*/
|
|
AUKN_SYM bool DispatchCommandToAsyncRunner(const AuString &string, Async::WorkerId_t id);
|
|
|
|
|
|
/**
|
|
* Parses `string` on the current thread and then schedules the ICommandSubscriber callback on the specified thread
|
|
*/
|
|
AUKN_SYM bool DispatchCommandToAsyncRunner(const AuString &string, Async::WorkerPId_t id);
|
|
} |