The open source OpenXR runtime
0
fork

Configure Feed

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

a/os: add os_cond_broadcast

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

+12
+12
src/xrt/auxiliary/os/os_threading.h
··· 221 221 } 222 222 223 223 /*! 224 + * Broadcast (signal to multiple threads). 225 + * 226 + * @public @memberof os_cond 227 + */ 228 + static inline int 229 + os_cond_broadcast(struct os_cond *oc) 230 + { 231 + assert(oc->initialized); 232 + return pthread_cond_broadcast(&oc->cond); 233 + } 234 + 235 + /*! 224 236 * Wait. 225 237 * 226 238 * Be sure to call this in a loop, testing some other condition that you