MCPcopy Create free account
hub / github.com/acl-dev/acl / min

Method min

app/master/tools/master_dispatch/server/server/ServerManager.cpp:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "server/ServerManager.h"
5
6ServerConnection* ServerManager::min()
7{
8 if (conns_.empty())
9 return NULL;
10
11 ServerConnection* conn = NULL;
12
13 std::vector<ServerConnection*>::iterator it = conns_.begin();
14 for (; it != conns_.end(); ++it)
15 {
16 if (conn == NULL || (*it)->get_conns() < conn->get_conns())
17 conn = *it;
18 }
19
20 return conn;
21}
22
23void ServerManager::set(ServerConnection* conn)
24{

Callers 13

mFunction · 0.80
dFunction · 0.80
heatmap.jsFile · 0.80
solid-gauge.src.jsFile · 0.80
heatmap.src.jsFile · 0.80
data.jsFile · 0.80
solid-gauge.jsFile · 0.80
buildFunction · 0.80
convolve_evenFunction · 0.80
data.src.jsFile · 0.80
transferMethod · 0.80
BeFunction · 0.80

Calls 4

beginMethod · 0.80
get_connsMethod · 0.80
emptyMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected