J Reece Wilson
3defb1bb14
[*] Expand watcher API -> Breaking NT [*] Reexpand loop queue API -> Breaking NT [*] Linux CPUInfo clean up [*] Bug fix: mkdir should set execute flag... because directories are special [*] Refactor: Cleanup base64 [*] Bug fix: UNIX path normalization [*] Bug fix: missing O_CREAT flag (au auto-creates) [*] Normalize line endings
31 lines
707 B
C++
Executable File
31 lines
707 B
C++
Executable File
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: LSEvent.Linux.hpp
|
|
Date: 2022-4-4
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
#include "LSHandle.hpp"
|
|
|
|
namespace Aurora::Loop
|
|
{
|
|
struct LSEvent : public ILSEvent, public LSHandle
|
|
{
|
|
LSEvent(bool triggered, bool atomicRelease, bool permitMultipleTriggers);
|
|
~LSEvent();
|
|
|
|
bool Set() override;
|
|
bool Reset() override;
|
|
|
|
virtual bool OnTrigger(AuUInt handle) override;
|
|
|
|
bool IsSignaled() override;
|
|
virtual ELoopSource GetType() override;
|
|
|
|
private:
|
|
void Init(bool init);
|
|
bool IsSignaledNonblocking();
|
|
bool atomicRelease_;
|
|
};
|
|
} |