MCPcopy Create free account
hub / github.com/F-Stack/f-stack / connIncrRefs

Function connIncrRefs

app/redis-6.2.6/src/connhelpers.h:52–54  ·  view source on GitHub ↗

Incremenet connection references. * * Inside a connection handler, we guarantee refs >= 1 so it is always * safe to connClose(). * * In other cases where we don't want to prematurely lose the connection, * it can go beyond 1 as well; currently it is only done by connAccept(). */

Source from the content-addressed store, hash-verified

50 * it can go beyond 1 as well; currently it is only done by connAccept().
51 */
52static inline void connIncrRefs(connection *conn) {
53 conn->refs++;
54}
55
56/* Decrement connection references.
57 *

Callers 2

callHandlerFunction · 0.85
connSocketAcceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected