MCPcopy Create free account
hub / github.com/defold/defold / GetNumPoolConnections

Function GetNumPoolConnections

engine/dlib/src/dlib/http_client.cpp:1382–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380 }
1381
1382 uint32_t GetNumPoolConnections()
1383 {
1384 dmConnectionPool::HPool pool = g_PoolCreator.GetPool();
1385
1386 dmConnectionPool::Stats stats;
1387 dmConnectionPool::GetStats(pool, &stats);
1388 return stats.m_InUseAndValid; // For the unit test to be able to wait for a connection in flight
1389
1390 }
1391
1392#undef HTTP_CLIENT_SENDALL_AND_BAIL
1393

Callers 6

ShutdownThreadFunction · 0.85
TEST_PFunction · 0.85

Calls 2

GetPoolMethod · 0.80
GetStatsFunction · 0.70

Tested by 6

ShutdownThreadFunction · 0.68
TEST_PFunction · 0.68