MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / setThreadName

Function setThreadName

src/DocLayer.actor.cpp:693–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693void setThreadName(const char* name) {
694#ifdef __linux__
695 prctl(PR_SET_NAME, name);
696#endif
697#ifdef __APPLE__
698 pthread_setname_np(name);
699#endif
700}
701
702int main(int argc, char** argv) {
703 CSimpleOpt args(argc, argv, g_rgOptions, SO_O_EXACT);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected