more primitives #55

Open
opened 2023-04-26 10:27:45 +00:00 by reece · 1 comment
Owner
InitOnce : IWaitable
    virtual IWaitable *ToLock() 
    /*virtual*/ inline IWaitable *ToReadyWaitable() { return this };
    virtual void TryInit(AuFunction<void()> callback) = 0;
    virtual bool TrySet() = 0;
    virtual bool IsReady() = 0;
ThreadLocalGuard 
    virtual void CheckOrThrow() = 0;
    virtual bool IsCurrentThread() = 0;
    virtual void UpdateThread() = 0;
``` InitOnce : IWaitable virtual IWaitable *ToLock() /*virtual*/ inline IWaitable *ToReadyWaitable() { return this }; virtual void TryInit(AuFunction<void()> callback) = 0; virtual bool TrySet() = 0; virtual bool IsReady() = 0; ``` ``` ThreadLocalGuard virtual void CheckOrThrow() = 0; virtual bool IsCurrentThread() = 0; virtual void UpdateThread() = 0; ```
Author
Owner
virtual bool TryInit(AuFunction<void()> callback) = 0;

use case came about
virtual bool TryInit(AuFunction<void()> callback) = 0; use case came about
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AuroraSupport/AuroraRuntime#55
No description provided.