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

Replace all usage of OSSpinLock with pthread_mutex. #109

Merged
merged 3 commits into from
May 17, 2016

Conversation

nlutsenko
Copy link
Contributor

Also updates Podfile and lints a bunch of whitespace.
Fixes #108.

// lock
OSSpinLockLock(&_lock);

pthread_mutex_unlock(&_lock);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong.

@richardjrossiii
Copy link

Horribly, horribly broken. Please use lock when acquiring a lock, not unlock :)

// unregister info
OSSpinLockLock(&_lock);
pthread_mutex_unlock(&_mutex);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect.

@codecov-io
Copy link

Current coverage is 67.93%

Merging #109 into master will decrease coverage by 14.19%

@@           master       #109   diff @@
========================================
  Files           3          3          
  Lines         235        237     +2   
  Methods         0         48    +48   
  Branches        0         45    +45   
========================================
- Hits          193        161    -32   
- Misses         42         43     +1   
- Partials        0         33    +33   
  1. 2 files in FBKVOController were modified. more
    • Partials +12
    • Hits -12

Powered by Codecov. Last updated by 596f179...fb284c1

@nlutsenko nlutsenko merged commit 8fddcf0 into master May 17, 2016
@nlutsenko nlutsenko deleted the nlutsenko.lockme branch May 17, 2016 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants