be a bit more robust to failures in window creation, IPC thread launching, & semaphore non-implemented parts

This commit is contained in:
Ryan Fleury
2025-05-10 14:39:32 -07:00
parent 3fd1f9d255
commit 868f2d0660
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -1071,7 +1071,7 @@ os_semaphore_alloc(U32 initial_count, U32 max_count, String8 name)
OS_Handle result = {0};
if (name.size > 0) {
// TODO: we need to allocate shared memory to store sem_t
NotImplemented;
// NotImplemented;
} else {
sem_t *s = mmap(0, sizeof(*s), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
AssertAlways(s != MAP_FAILED);