The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: add function to stop ipc_server

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2612>

authored by

John Cannon and committed by
Jakob Bornecrantz
fc25dfcb b17c9d6e

+14
+8
src/xrt/ipc/server/ipc_server_interface.h
··· 101 101 int 102 102 ipc_server_main_common(const struct ipc_server_main_info *ismi, const struct ipc_server_callbacks *iscb, void *data); 103 103 104 + /*! 105 + * Asks the server to shut down, this call is asynchronous and will return 106 + * immediately. Use callbacks to be notified when the server stops. 107 + * 108 + * @memberof ipc_server 109 + */ 110 + int 111 + ipc_server_stop(struct ipc_server *s); 104 112 105 113 #ifndef XRT_OS_ANDROID 106 114
+6
src/xrt/ipc/server/ipc_server_process.c
··· 1129 1129 return ret; 1130 1130 } 1131 1131 1132 + int 1133 + ipc_server_stop(struct ipc_server *s) 1134 + { 1135 + s->running = false; 1136 + return 0; 1137 + } 1132 1138 1133 1139 #ifndef XRT_OS_ANDROID 1134 1140