MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ThreadPools_ThreadCount

Function ThreadPools_ThreadCount

src/util/thpool/pools.c:62–74  ·  view source on GitHub ↗

return number of threads in both the readers and writers pools

Source from the content-addressed store, hash-verified

60
61// return number of threads in both the readers and writers pools
62uint ThreadPools_ThreadCount
63(
64 void
65) {
66 ASSERT(_readers_thpool != NULL);
67 ASSERT(_writers_thpool != NULL);
68
69 uint count = 0;
70 count += thpool_num_threads(_readers_thpool);
71 count += thpool_num_threads(_writers_thpool);
72
73 return count;
74}
75
76uint ThreadPools_ReadersCount
77(

Callers 8

logCommandsFunction · 0.85
InfoFuncFunction · 0.85
Globals_InitFunction · 0.85
Globals_GetCommandCtxsFunction · 0.85
_info_running_queriesFunction · 0.85
_info_waiting_queriesFunction · 0.85
SlowLog_NewFunction · 0.85

Calls 1

thpool_num_threadsFunction · 0.85

Tested by 1