MCPcopy Create free account
hub / github.com/GNOME/gjs / is_queued

Method is_queued

gi/toggle.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87std::pair<bool, bool> ToggleQueue::is_queued(ObjectInstance* obj) const {
88 g_assert(owns_lock() && "Unsafe access to queue");
89 bool has_toggle_down = find_operation_locked(obj, DOWN) != q.end();
90 bool has_toggle_up = find_operation_locked(obj, UP) != q.end();
91 return {has_toggle_down, has_toggle_up};
92}
93
94std::pair<bool, bool> ToggleQueue::cancel(ObjectInstance* obj) {
95 debug("cancel", obj);

Callers 2

Calls 1

endMethod · 0.80

Tested by

no test coverage detected