Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kitware/CMake
/ ~Shared
Method
~Shared
Utilities/cmcppdap/src/socket.cpp:118–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
Shared(addrinfo* info, SOCKET socket) : info(info), s(socket) {}
117
118
~Shared() {
119
if (info) {
120
freeaddrinfo(info);
121
}
122
close();
123
term();
124
}
125
126
template <typename FUNCTION>
127
void lock(FUNCTION&& f) {
Callers
nothing calls this directly
Calls
1
term
Function · 0.85
Tested by
no test coverage detected