MCPcopy Create free account
hub / github.com/3rdparty/libprocess / release

Method release

include/process/socket.hpp:221–226  ·  view source on GitHub ↗

* Releases ownership of the file descriptor. Not exposed * via the `Socket` interface as this is only intended to * support `Socket::Impl` implementations that need to * override the file descriptor ownership. */

Source from the content-addressed store, hash-verified

219 * override the file descriptor ownership.
220 */
221 int_fd release()
222 {
223 int_fd released = s;
224 s = -1;
225 return released;
226 }
227
228 /**
229 * Returns a `std::shared_ptr<T>` from this implementation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected