MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / net_decom_node_delayed

Function net_decom_node_delayed

net/net.c:3703–3711  ·  view source on GitHub ↗

run net_decom_node after sleeping for a few sec */

Source from the content-addressed store, hash-verified

3701/* run net_decom_node after sleeping for a few sec
3702 */
3703static void *net_decom_node_delayed(void *p)
3704{
3705 comdb2_name_thread(__func__);
3706 struct net_decom_node_arg *args = (struct net_decom_node_arg *)p;
3707 sleep(2);
3708 net_decom_node(args->netinfo_ptr, args->host);
3709 free(args);
3710 return NULL;
3711}
3712
3713static int run_net_decom_node_delayed(netinfo_type *netinfo_ptr,
3714 const char *host)

Callers

nothing calls this directly

Calls 3

comdb2_name_threadFunction · 0.85
net_decom_nodeFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected