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

Method InitializeOnce

src/brpc/server.cpp:673–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673int Server::InitializeOnce() {
674 if (_status != UNINITIALIZED) {
675 return 0;
676 }
677 GlobalInitializeOrDie();
678
679 if (_status != UNINITIALIZED) {
680 return 0;
681 }
682 _status = READY;
683 return 0;
684}
685
686int Server::InitALPNOptions(const ServerSSLOptions* options) {
687 if (options == nullptr) {

Callers

nothing calls this directly

Calls 1

GlobalInitializeOrDieFunction · 0.85

Tested by

no test coverage detected