Поддержка многопоточности
This commit is contained in:
18
wayland/include/wayland_runtime.h
Normal file
18
wayland/include/wayland_runtime.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef WAYLAND_RUNTIME_H
|
||||
#define WAYLAND_RUNTIME_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* Initialize shared Wayland connection and prepare global data */
|
||||
int32_t init_wayland(void);
|
||||
|
||||
/* Spawn a new window thread; returns slot index or negative on failure */
|
||||
int32_t run_window(void);
|
||||
|
||||
/* Block until all window threads have exited */
|
||||
void wait_for_windows(void);
|
||||
|
||||
/* Tear down window threads, input, and the shared Wayland connection */
|
||||
void destroy_wayland(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user