MCPcopy Create free account
hub / github.com/facebook/CacheLib / getCurrentNavyThread

Function getCurrentNavyThread

cachelib/navy/common/NavyThread.cpp:23–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21static thread_local NavyThread* currentNavyThread_ = nullptr;
22
23NavyThread* getCurrentNavyThread() { return currentNavyThread_; }
24bool isOnNavyThread() { return currentNavyThread_ != nullptr; }
25
26NavyThread::NavyThread(folly::StringPiece name, Options options) {

Callers 2

doFlushMethod · 0.85
isOnWorkerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected