Path: blob/master/thirdparty/sdl/thread/generic/SDL_sysrwlock_c.h
10279 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/20#include "SDL_internal.h"2122#ifndef SDL_sysrwlock_c_h_23#define SDL_sysrwlock_c_h_2425#ifdef SDL_THREAD_GENERIC_RWLOCK_SUFFIX2627SDL_RWLock *SDL_CreateRWLock_generic(void);28void SDL_DestroyRWLock_generic(SDL_RWLock *rwlock);29void SDL_LockRWLockForReading_generic(SDL_RWLock *rwlock);30void SDL_LockRWLockForWriting_generic(SDL_RWLock *rwlock);31bool SDL_TryLockRWLockForReading_generic(SDL_RWLock *rwlock);32bool SDL_TryLockRWLockForWriting_generic(SDL_RWLock *rwlock);33void SDL_UnlockRWLock_generic(SDL_RWLock *rwlock);3435#endif // SDL_THREAD_GENERIC_RWLOCK_SUFFIX3637#endif // SDL_sysrwlock_c_h_383940