You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace deprecated POSIX semaphores with pthread wrapper (#516)
macOS deprecated unnamed POSIX semaphores (sem_init, sem_getvalue).
Replace with a portable spine_sem_t wrapper using pthread mutex +
condition variable. This eliminates all 9 deprecation warnings and
works identically on Linux and macOS.
Spine uses semaphores only as atomic counters (sem_post + sem_getvalue,
no sem_wait), so the wrapper is straightforward. The condition variable
is included for completeness but not currently exercised.
Changes:
- Add spine_sem.h with inline spine_sem_init/post/getvalue/wait/destroy
- Replace semaphore.h include with spine_sem.h in common.h
- Update all sem_t/sem_init/sem_post/sem_getvalue calls in spine.c,
poller.c, and spine.h
- Add spine_sem.h to EXTRA_DIST
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
0 commit comments