MCPcopy Create free account
hub / github.com/Tencent/libco / GetPid

Function GetPid

co_hook_sys_call.cpp:59–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 struct timeval write_timeout;
58};
59static inline pid_t GetPid()
60{
61 char **p = (char**)pthread_self();
62 return p ? *(pid_t*)(p + 18) : getpid();
63}
64static rpchook_t *g_rpchook_socket_fd[ 102400 ] = { 0 };
65
66typedef int (*socket_pfn_t)(int domain, int type, int protocol);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected