[Kernel] ReleaseSemaphore for Posix to match Windows semantics

This commit is contained in:
Herman S.
2025-10-12 20:30:29 +09:00
parent 28e48410c5
commit 32b8c341ee
4 changed files with 32 additions and 13 deletions

View File

@@ -29,7 +29,8 @@ class XSemaphore : public XObject {
[[nodiscard]] bool InitializeNative(void* native_ptr,
X_DISPATCH_HEADER* header);
int32_t ReleaseSemaphore(int32_t release_count);
[[nodiscard]] bool ReleaseSemaphore(int32_t release_count,
int32_t* out_previous_count);
bool Save(ByteStream* stream) override;
static object_ref<XSemaphore> Restore(KernelState* kernel_state,