Adapt pthread implementation to recent changes
3 files changed