Jamie Reece Wilson
8944d8bd16
[+] IAsyncTimerCallback [+] ETickType.hpp [+] EWorkPriority.hpp [+] static IThreadPool::GetSelfIOProcessor() [+] static IThreadPool::GetSelfIONetInterface() [+] static IThreadPool::GetSelfIONetWorker() [-] [Source/Async/]AsyncRunnable.hpp [*] Begin encapsulating WorkerPId_t [*] WorkerPId_t no longer take strong pointers to prevent leaks given that these identifiers are copied and kept alive everywhere
27 lines
593 B
C++
27 lines
593 B
C++
/***
|
|
Copyright (C) 2021-2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuAsyncFuncWorker.hpp
|
|
Date: 2023-12-06
|
|
Date: 2021-11-2
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include "WorkItem.hpp"
|
|
|
|
namespace Aurora::Async
|
|
{
|
|
struct AsyncFuncWorker : WorkItem
|
|
{
|
|
AsyncFuncWorker(IThreadPoolInternal *owner,
|
|
const WorkerPId_t &worker,
|
|
AuVoidFunc &&func);
|
|
|
|
void DispatchTask(IWorkItemHandler::ProcessInfo &info) override;
|
|
void Cleanup() override;
|
|
|
|
private:
|
|
AuVoidFunc func;
|
|
};
|
|
} |