The open source OpenXR runtime
0
fork

Configure Feed

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

aux/os: Add os_mutex_trylock

authored by

Moses Turner and committed by
Jakob Bornecrantz
0b2dd35b 73561006

+6
+6
src/xrt/auxiliary/os/os_threading.h
··· 72 72 pthread_mutex_lock(&om->mutex); 73 73 } 74 74 75 + static inline int 76 + os_mutex_trylock(struct os_mutex *om) 77 + { 78 + return pthread_mutex_trylock(&om->mutex); 79 + } 80 + 75 81 /*! 76 82 * Unlock. 77 83 */