From 7a5d1cd396b844c0a8fcee92c209dcec8fff303e Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sun, 17 Sep 2023 19:02:38 +0100 Subject: [PATCH] [*] ew. the old iwaitable is in the README --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6f799a24..bc18dfcc 100644 --- a/README.md +++ b/README.md @@ -151,11 +151,14 @@ with nanosecond resolution absolute and relative yielding. ``` struct IWaitable { - virtual bool TryLock() = 0; - virtual void Lock(relativeTimeoutInMilliseconds) = 0; - virtual void Lock() = 0; - virtual void Unlock() = 0; -} + void Lock() + bool LockMS(AuUInt64 qwRelTimeoutInMs /* = 0, infinity - use TryLock to avoid sleeping */) + bool LockNS(AuUInt64 qwRelTimeoutInNs /* = 0, infinity - use TryLock to avoid sleeping */) + bool LockAbsMS(AuUInt64 qwAbsTimeoutInMs /* = 0, infinity*/) + bool LockAbsNS(AuUInt64 qwAbsTimeoutInNs /* = 0, infinity*/) + bool TryLock() + void Unlock() +}; ``` Included high performance primitives