MCPcopy Create free account
hub / github.com/ceph/ceph / is_code

Method is_code

src/msg/DispatchQueue.h:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 explicit QueueItem(const ceph::ref_t<Message>& m) : type(-1), con(0), m(m) {}
51 QueueItem(int type, Connection *con) : type(type), con(con), m(0) {}
52 bool is_code() const {
53 return type != -1;
54 }
55 int get_code () const {
56 ceph_assert(is_code());
57 return type;

Callers 2

entryMethod · 0.80
discard_queueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected