Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Use pthread_mutex for locking #26

Merged
merged 3 commits into from
Jan 19, 2016
Merged

Conversation

js
Copy link
Contributor

@js js commented Dec 18, 2015

Use a pthread_mutex_t to synchronise access to the callbacks instead of objc_sync_{enter,exit} which is only available on Darwin.

Furthermore, also synchronise when adding new subscribers.

Haven't actually tried this on a Linux build of Swift, since I don't have one.

JensRavens added a commit that referenced this pull request Jan 19, 2016
Use pthread_mutex for locking
@JensRavens JensRavens merged commit 974aba0 into JensRavens:master Jan 19, 2016
@JensRavens
Copy link
Owner

Thank you for your work. Now I can finally remove the dependency on Foundation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants