MCPcopy Create free account
hub / github.com/apache/thrift / notify

Method notify

lib/cpp/src/thrift/transport/TServerSocket.cpp:744–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744void TServerSocket::notify(THRIFT_SOCKET notifySocket) {
745 if (notifySocket != THRIFT_INVALID_SOCKET) {
746 int8_t byte = 0;
747 if (-1 == send(notifySocket, cast_sockopt(&byte), sizeof(int8_t), 0)) {
748 TOutput::instance().perror("TServerSocket::notify() send() ", THRIFT_GET_SOCKET_ERROR);
749 }
750 }
751}
752
753void TServerSocket::interrupt() {
754 concurrency::Guard g(rwMutex_);

Callers 4

~TFileTransportMethod · 0.45
enqueueEventMethod · 0.45
swapEventBuffersMethod · 0.45
flushMethod · 0.45

Calls 2

cast_sockoptFunction · 0.70
perrorMethod · 0.45

Tested by

no test coverage detected