35 [[nodiscard]]
virtual std::string_view
name() const noexcept = 0;
Common interface for synchronization primitives.
virtual ~ISyncPrimitive()=default
virtual Result< void > acquire(ProcessId pid)=0
Attempts to acquire the primitive for a process.
virtual Result< void > tryAcquire(ProcessId pid)=0
Attempts non-blocking acquire.
virtual std::string_view name() const noexcept=0
Human-readable primitive name.
virtual Result< void > release(ProcessId pid)=0
Releases the primitive for a process.
A result type that holds either a success value of type T or an ErrorCode.
Error codes and Result<T> type for fallible operations.
std::uint32_t ProcessId
Unique identifier for a process.
Common type aliases, sentinel constants, and forward declarations used throughout the Contur 2 kernel...