MCPcopy Create free account
hub / github.com/davisking/dlib / lock

Method lock

dlib/smart_pointers/weak_ptr.h:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 bool expired() const { return weak_node == 0 || weak_node->shared_node == 0; }
143
144 shared_ptr<T> lock(
145 ) const
146 {
147 if (expired())
148 return shared_ptr<T>();
149 else
150 return shared_ptr<T>(*this);
151 }
152
153 void reset(
154 )

Callers 15

sd_calledMethod · 0.45
sdo_calledMethod · 0.45
shutdown_outgoingMethod · 0.45
shutdownMethod · 0.45
sd_calledMethod · 0.45
sdo_calledMethod · 0.45
sockets_startupFunction · 0.45
sockets_startupFunction · 0.45
shutdown_outgoingMethod · 0.45
shutdownMethod · 0.45
get_max_connectionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected