MCPcopy Create free account
hub / github.com/apache/trafficserver / _finishCommit

Method _finishCommit

include/tscore/AcidPtr.h:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140protected:
141 void
142 _finishCommit(T *data)
143 {
144 // wait until we have exclusive pointer access.
145 auto ptr_lock = AcidPtrLock(AcidPtrMutexGet(&data_ptr));
146 // overwrite the pointer
147 data_ptr.reset(data);
148 //[end scope] unlock ptr_lock
149 }
150};
151
152///////////////////////////////////////////

Callers 1

~AcidCommitPtrMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected