1<HTML 2><HEAD 3><TITLE 4>SDL_mutexV</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="SDL Library Documentation" 11HREF="index.html"><LINK 12REL="UP" 13TITLE="Multi-threaded Programming" 14HREF="thread.html"><LINK 15REL="PREVIOUS" 16TITLE="SDL_mutexP" 17HREF="sdlmutexp.html"><LINK 18REL="NEXT" 19TITLE="SDL_CreateSemaphore" 20HREF="sdlcreatesemaphore.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFF8DC" 24TEXT="#000000" 25LINK="#0000ee" 26VLINK="#551a8b" 27ALINK="#ff0000" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31SUMMARY="Header navigation table" 32WIDTH="100%" 33BORDER="0" 34CELLPADDING="0" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="3" 39ALIGN="center" 40>SDL Library Documentation</TH 41></TR 42><TR 43><TD 44WIDTH="10%" 45ALIGN="left" 46VALIGN="bottom" 47><A 48HREF="sdlmutexp.html" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56></TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="sdlcreatesemaphore.html" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="SDLMUTEXV" 74></A 75>SDL_mutexV</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN7905" 80></A 81><H2 82>Name</H2 83>SDL_mutexV -- Unlock a mutex</DIV 84><DIV 85CLASS="REFSYNOPSISDIV" 86><A 87NAME="AEN7908" 88></A 89><H2 90>Synopsis</H2 91><DIV 92CLASS="FUNCSYNOPSIS" 93><A 94NAME="AEN7909" 95></A 96><P 97></P 98><PRE 99CLASS="FUNCSYNOPSISINFO" 100>#include "SDL.h" 101#include "SDL_thread.h"</PRE 102><P 103><CODE 104><CODE 105CLASS="FUNCDEF" 106>int <B 107CLASS="FSFUNC" 108>SDL_mutexV</B 109></CODE 110>(SDL_mutex *mutex);</CODE 111></P 112><P 113></P 114></DIV 115></DIV 116><DIV 117CLASS="REFSECT1" 118><A 119NAME="AEN7915" 120></A 121><H2 122>Description</H2 123><P 124>Unlocks the <TT 125CLASS="PARAMETER" 126><I 127>mutex</I 128></TT 129>, which was previously created with <A 130HREF="sdlcreatemutex.html" 131><TT 132CLASS="FUNCTION" 133>SDL_CreateMutex</TT 134></A 135>. Returns <SPAN 136CLASS="RETURNVALUE" 137>0</SPAN 138> on success, or <SPAN 139CLASS="RETURNVALUE" 140>-1</SPAN 141> on an error.</P 142><P 143>SDL also defines a macro <TT 144CLASS="LITERAL" 145>#define SDL_UnlockMutex(m) SDL_mutexV(m)</TT 146>.</P 147></DIV 148><DIV 149CLASS="REFSECT1" 150><A 151NAME="AEN7925" 152></A 153><H2 154>See Also</H2 155><P 156><A 157HREF="sdlcreatemutex.html" 158><TT 159CLASS="FUNCTION" 160>SDL_CreateMutex</TT 161></A 162>, 163<A 164HREF="sdlmutexp.html" 165><TT 166CLASS="FUNCTION" 167>SDL_mutexP</TT 168></A 169></P 170></DIV 171><DIV 172CLASS="NAVFOOTER" 173><HR 174ALIGN="LEFT" 175WIDTH="100%"><TABLE 176SUMMARY="Footer navigation table" 177WIDTH="100%" 178BORDER="0" 179CELLPADDING="0" 180CELLSPACING="0" 181><TR 182><TD 183WIDTH="33%" 184ALIGN="left" 185VALIGN="top" 186><A 187HREF="sdlmutexp.html" 188ACCESSKEY="P" 189>Prev</A 190></TD 191><TD 192WIDTH="34%" 193ALIGN="center" 194VALIGN="top" 195><A 196HREF="index.html" 197ACCESSKEY="H" 198>Home</A 199></TD 200><TD 201WIDTH="33%" 202ALIGN="right" 203VALIGN="top" 204><A 205HREF="sdlcreatesemaphore.html" 206ACCESSKEY="N" 207>Next</A 208></TD 209></TR 210><TR 211><TD 212WIDTH="33%" 213ALIGN="left" 214VALIGN="top" 215>SDL_mutexP</TD 216><TD 217WIDTH="34%" 218ALIGN="center" 219VALIGN="top" 220><A 221HREF="thread.html" 222ACCESSKEY="U" 223>Up</A 224></TD 225><TD 226WIDTH="33%" 227ALIGN="right" 228VALIGN="top" 229>SDL_CreateSemaphore</TD 230></TR 231></TABLE 232></DIV 233></BODY 234></HTML 235>