Commit 1c247606 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#4869 #4753 fixup debug icc build refs[t:4869] refs[t:4753]

git-svn-id: file:///svn/toku/tokudb@43597 c7de825b-a66e-492c-adef-691d508d4ae1
parent b28a71ed
......@@ -88,9 +88,7 @@ int toku_cv_fair_rwlock_destroy (toku_cv_fair_rwlock_t *rwlock) {
int toku_cv_fair_rwlock_rdlock (toku_cv_fair_rwlock_t *rwlock) {
struct toku_cv_fair_rwlock_waiter_state *GET_WAITSTATE(waitstate);
int r;
toku_mutex_lock(&rwlock->mutex);
assert(r==0);
if (rwlock->waiters_head!=NULL || rwlock->state<0) {
// Someone is ahead of me in the queue, or someone has a lock.
// We use per-thread-state for the condition variable. A thread cannot get control and try to reuse the waiter state for something else.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment