SDL_mutexV(3)

πŸ’… NAME πŸ’…

okay so bestie, welcome to the SDL_mutexV(3) page from the SDL API Reference β€” and it's giving exactly what it says on the tin: SDL_mutexV β€” Unlock a mutex. We love a lil unlock moment. ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include "SDL.h" #include "SDL_thread.h"

int SDL_mutexV(SDL_mutex *mutex);

✨ DESCRIPTION ✨

So what does it do? It unlocks the mutex, bestie. Specifically, the mutex that was previously created with SDL_CreateMutex. Then it tells you how it went: returns 0 on success, or -1 on an error. That's the whole vibe check.

SDL also defines a macro, because of course it does:

#define SDL_UnlockMutex(m) SDL_mutexV(m)

So yes, SDL_UnlockMutex(m) is literally just SDL_mutexV(m) in a cute little disguise. Obsessed. πŸ’–


🌈 SEE ALSO 🌈

  • SDL_CreateMutex
  • SDL_mutexP

xoxo, stay unlocked πŸ’… β€” this was the SDL_mutexV(3) page from SDL, dated Tue 11 Sep 2001, 23:01. 🫢✨

πŸ“¦ where this page comes from