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

Function CurrentProcessId

src/butil/logging.cc:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198// Helper functions to wrap platform differences.
199
200int32_t CurrentProcessId() {
201#if defined(OS_WIN)
202 return GetCurrentProcessId();
203#elif defined(OS_POSIX)
204 return getpid();
205#endif
206}
207
208void DeleteFilePath(const PathString& log_name) {
209#if defined(OS_WIN)

Callers 2

PrintLogPrefixFunction · 0.85
PrintLogPrefixAsJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected