Skip to content

[os/linux]: replace linux type stubs and fix condvar ordering#624

Open
bonsthie wants to merge 2 commits intoEpicGamesExt:masterfrom
bonsthie:os_basic_linux_types_stub
Open

[os/linux]: replace linux type stubs and fix condvar ordering#624
bonsthie wants to merge 2 commits intoEpicGamesExt:masterfrom
bonsthie:os_basic_linux_types_stub

Conversation

@bonsthie
Copy link
Copy Markdown

  • Replace OS_Handle parameters with proper Mutex/RWMutex/CondVar/Semaphore/Barrier to match os_core.h declarations on Linux, so the code compiles on Linux.
  • Fix os_cond_var_wait_rw_w and os_cond_var_wait_rw_r lock ordering to avoid deadlock.

- Replace OS_Handle parameters with proper Mutex/RWMutex/CondVar/Semaphore/Barrier
  to match os_core.h declarations on Linux, so the code compiles on Linux.
- Fix os_cond_var_wait_rw_w and os_cond_var_wait_rw_r lock ordering to avoid deadlock.
Comment thread src/os/core/linux/os_core_linux.c Outdated
////////////////////////////////
//~ rjf: Helpers

#include <asm-generic/errno.h>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If errno.h header is needed then it should be #include <errno.h> not <asm-generic/errno.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants