ps2homebrew / hdl-dump

Install games in HDLoader format to APA-formatted hard drive
122 stars 25 forks source link

Fix semaphore for macOS #34

Closed hkr closed 3 years ago

hkr commented 3 years ago

Pull Request checklist

Note: these are not necessarily requirements

Pull Request description

Use of named semaphores had issues (use of sem_open is missing mandatory parameters: initial semaphore value permissions), which caused essentially an infinite loop at least on my system.

This change replaces named semaphore with a semaphore built on top of pthread condvar.

uyjulian commented 3 years ago

Thank you. I didn't really look in the direction of the pthread API, but good to know it's possible to wrap that.