Merge branch 'async-master' into 'master'

Draft: render,types/wlr_shm: Offload slow cleanup ops

See merge request wlroots/wlroots!4755
This commit is contained in:
Kurt Kartaltepe 2025-11-30 00:11:40 +00:00
commit 2c9b315e7d
6 changed files with 130 additions and 4 deletions

10
include/util/cleanup.h Normal file
View file

@ -0,0 +1,10 @@
typedef void (*wlr_task_cb)(void *data);
struct wlr_task {
wlr_task_cb task;
void *data;
};
void wlr_cleanup_queue_init(void);
void wlr_cleanup_queue_finish(void);
void wlr_cleanup_defer(struct wlr_task t);