Skip to content

[FIX] Add macOS compatibility for thread naming and condition variables#846

Open
skyroom-ant wants to merge 1 commit intoCOVESA:masterfrom
skyroom-ant:fix/macos-thread-compatibility
Open

[FIX] Add macOS compatibility for thread naming and condition variables#846
skyroom-ant wants to merge 1 commit intoCOVESA:masterfrom
skyroom-ant:fix/macos-thread-compatibility

Conversation

@skyroom-ant
Copy link
Copy Markdown

  • Add APPLE check for pthread_setname_np (macOS uses single-argument version)
  • Skip pthread_condattr_setclock on macOS (CLOCK_MONOTONIC not supported)
  • Add Darwin case to tests/CMakeLists.txt to avoid linking socket library

Fixes build issues on macOS while maintaining compatibility with Linux and QNX.

- Add __APPLE__ check for pthread_setname_np (macOS uses single-argument version)
- Skip pthread_condattr_setclock on macOS (CLOCK_MONOTONIC not supported)
- Add Darwin case to tests/CMakeLists.txt to avoid linking socket library

Fixes build issues on macOS while maintaining compatibility with Linux and QNX.
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.

1 participant