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

Function sockpool_remove_fd

cdb2api/cdb2api.c:1938–1949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1936}
1937
1938static void sockpool_remove_fd(int fd)
1939{
1940 for (int i = 0; i < sockpool_fd_count; i++) {
1941 struct sockpool_fd_list *sp = &sockpool_fds[i];
1942 if (sp->sockpool_fd == fd) {
1943 assert(sp->in_use == 1);
1944 sp->sockpool_fd = -1;
1945 sp->in_use = 0;
1946 break;
1947 }
1948 }
1949}
1950
1951static void sockpool_close_all(void)
1952{

Callers 2

cdb2_socket_pool_get_llFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected