A wl_display is also used as the wl_proxy for the wl_display singleton object on the compositor side. A wl_display object handles all the data sent from and to the compositor. When a wl_proxy marshals a request, it will write its wire representation to the display’s write buffer.
wl_display_roundtrip is used by wayland for synchronous response. This call will block until server server response and must be used with care as it may slow down system or even in worst case may cause deadlock. wl_display_roundtrip is only used once when binding for registry and getting global object and bind, since client can’t do anything without getting the object interface.
The wl_display object used to create the queue should not be destroyed until all event queues created with it are destroyed with this function. Author. Generated automatically by Doxygen for Wayland from the source code. Pages related to wl_display_roundtrip_queue. wl_display_roundtrip (3), NativeStateWayland: use wl_display_ roundtrip in flip method As noticed by Axel Davy we need to use wl_display_ roundtrip in NativeStateWayl and::flip to prevent blocking when eglSwapInterval(0) is, The only thing the client can create next is a wl_registry through the wl_display. Registry is the root of the whole interface (class) hierarchy. … you have a round – trip and just turned a beautiful asynchronous protocol into synchronous, congratulations! Concluding with recommendations Here are my recommendations when designing Wayland …
Events are generated both in response to requests (in which case the request and the event constitutes a round trip ) or spontaneously when the server state changes. State is broadcast on connect, events are sent out when state changes. Clients must listen for these changes and cache the state. … The wl_display (and, by extension, wl_registry …
Binding to globals. Upon creating a registry object, the server will emit the global event for each global available on the server. You can then bind to the globals you require. This process of taking a known object and assigning it an ID is called binding the object. Once the client binds to the registry like this, the server emits the global event several times to advertise which interfaces …
9/19/2014 · – New wl_display_add_socket_auto() in libwayland-server: automatically find a free socket name. – Many added tests to the ‘make check’ suite, including a framework for testing server-client interactions more easily. – Threading and blocking related bug fixes. – Add wl_display_roundtrip_queue(): blocking round – trip on a custom queue.