Giovanni Mascellani (@giomasce) commented about libs/vkd3d/vkd3d_private.h:
ERR("Could not lock the mutex, error %d.\n", ret);
}
+static inline bool vkd3d_mutex_trylock(struct vkd3d_mutex *lock) +{
- /* FIXME: Untested. */
- return !pthread_mutex_lock(&lock->lock);
`pthread_mutex_trylock()` exists. Technically you have to check for `EBUSY` though.