Skip to content

Commit

Permalink
Merge branch 'release/plcrashreporter-1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
landonf committed Aug 14, 2015
2 parents 012492f + 6c33c64 commit 1cba253
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/SpinLock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ class SpinLock {
bool released = __sync_bool_compare_and_swap(&_mtx, 1, 0);

/* If this isn't true, the lock wasn't actually held by the caller. */
PLCF_ASSERT(released);
if (!released) {
PLCF_DEBUG("Released lock that was not held by the caller!");
PLCF_ASSERT(released);
}
}

private:
Expand Down

0 comments on commit 1cba253

Please sign in to comment.