Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
#include "include/unordered_set.h"
#include "common/Mutex.h"
-#include "include/atomic.h"
#include "common/Cond.h"
#include "common/Thread.h"
+#include "include/Spinlock.h"
+
#include "msg/SimplePolicyMessenger.h"
#include "msg/DispatchQueue.h"
#include "include/assert.h"
state = STATE_STANDBY;
} else {
state = STATE_CLOSED;
- state_closed.set(1);
+ state_closed = true;
}
fault();
if (queued || replaced)
}
state = STATE_CLOSED;
- state_closed.set(1);
+ state_closed = true;
fault();
return -1;
}
ldout(msgr->cct,10) << "stop" << dendl;
assert(pipe_lock.is_locked());
state = STATE_CLOSED;
- state_closed.set(1);
+ state_closed = true;
cond.Signal();
shutdown_socket();
}
pipe_lock.Lock();
if (state == STATE_CLOSING) {
state = STATE_CLOSED;
- state_closed.set(1);
+ state_closed = true;
} else {
state = STATE_CLOSING;
}
ldout(msgr->cct,20) << "writer writing CLOSE tag" << dendl;
char tag = CEPH_MSGR_TAG_CLOSE;
state = STATE_CLOSED;
- state_closed.set(1);
+ state_closed = true;
pipe_lock.Unlock();
if (sd >= 0) {
// we can ignore return value, actually; we don't care if this succeeds.