Function SDL_DestroyRWLock

pub unsafe extern "C" fn SDL_DestroyRWLock(rwlock: *mut SDL_RWLock)
Available on crate feature dep_sdl3 only.
Expand description

Destroy a read/write lock created with SDL_CreateRWLock().

This function must be called on any read/write lock that is no longer needed. Failure to destroy a rwlock will result in a system memory or resource leak. While it is safe to destroy a rwlock that is unlocked, it is not safe to attempt to destroy a locked rwlock, and may result in undefined behavior depending on the platform.

§Parameters

  • rwlock: the rwlock to destroy.

§Availability

This function is available since SDL 3.2.0.

§See also