mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
util/signal: Introduce wlr_signal_emit_final
wlr_signal_emit_final is conceptually similar to wl_signal_emit_mutable (i.e., our old wlr_signal_emit_safe), but instead of running all listeners that were added at the time the signal emit started, we run until the list is empty, removing entries as we go along. This ensures that newly added signals are run all the same.
This commit is contained in:
parent
156d47c866
commit
b222fe2a4a
4 changed files with 29 additions and 1 deletions
8
include/util/signal.h
Normal file
8
include/util/signal.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef UTIL_SIGNAL_H
|
||||
#define UTIL_SIGNAL_H
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
void wlr_signal_emit_final(struct wl_signal *signal, void *data);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue