MCPcopy Create free account
hub / github.com/canonical/mir / reset

Function reset

examples/example-server-lib/tiling_window_manager.cpp:176–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174{
175template<typename ValueType>
176void reset(mir::optional_value<ValueType>& option)
177{
178 if (option.is_set()) option.consume();
179}
180
181template<typename ValueType>
182void set_if_needed(mir::optional_value<ValueType>& pending, ValueType const& current, ValueType const& correct)

Callers 6

check_waiting_statusMethod · 0.85
RealKMSOutputMethod · 0.85
AtomicKMSOutputMethod · 0.85
set_if_neededFunction · 0.85
handle_modify_windowMethod · 0.85

Calls 2

is_setMethod · 0.45
consumeMethod · 0.45

Tested by

no test coverage detected