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

Method test_and_set

include/tscore/AtomicBit.h:51–55  ·  view source on GitHub ↗

Atomically set the bit true return @c true if the bit was changed, @c false if not.

Source from the content-addressed store, hash-verified

49 // Atomically set the bit true
50 // return @c true if the bit was changed, @c false if not.
51 bool
52 test_and_set()
53 {
54 return compare_exchange(true);
55 }
56
57 // allows assign by bool
58 // @return The new value of the bit.

Callers 1

writePostBodyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected