MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / exchangeBitOr

Method exchangeBitOr

src/common/classes/fb_atomic.h:79–87  ·  view source on GitHub ↗

returns old value

Source from the content-addressed store, hash-verified

77
78 // returns old value
79 counter_type exchangeBitOr(counter_type val)
80 {
81 while (true)
82 {
83 counter_type oldVal = counter.load();
84 if (counter.compare_exchange_strong(oldVal, oldVal | val))
85 return oldVal;
86 }
87 }
88
89 // returns old value
90 counter_type exchangeGreater(counter_type val)

Callers 4

set_diff_pageFunction · 0.80
down_gradeFunction · 0.80
recentlyUsedFunction · 0.80
VIO_initFunction · 0.80

Calls 2

loadMethod · 0.45

Tested by

no test coverage detected