MCPcopy Create free account
hub / github.com/apache/brpc / SetEOF

Method SetEOF

src/brpc/socket_inl.h:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74inline void Socket::SetEOF() {
75 uint32_t nref = _ninprocess.fetch_or(EOF_FLAG, butil::memory_order_relaxed);
76 if ((nref & EOF_FLAG) == 0) {
77 // Release the additional reference in `_ninprocess'
78 CheckEOFInternal();
79 }
80}
81
82inline void Socket::reset_parsing_context(Destroyable* new_context) {
83 Destroyable* old_ctx = _parsing_context.exchange(

Callers 8

ProcessMessageMethod · 0.80
ProcessMessageMethod · 0.80
ProcessMessageMethod · 0.80
ProcessMessageMethod · 0.80
ProcessMessageMethod · 0.80
ProcessMessageMethod · 0.80
OnNewMessagesMethod · 0.80

Calls 1

fetch_orMethod · 0.80

Tested by 6

ProcessMessageMethod · 0.64
ProcessMessageMethod · 0.64
ProcessMessageMethod · 0.64
ProcessMessageMethod · 0.64
ProcessMessageMethod · 0.64
ProcessMessageMethod · 0.64