Function gs_texture_acquire_sync

Source
pub unsafe extern "C" fn gs_texture_acquire_sync(
    tex: *mut gs_texture_t,
    key: u64,
    ms: u32,
) -> c_int
Expand description

acquires a lock on a keyed mutex texture. returns -1 on generic failure, ETIMEDOUT if timed out