docs/html/sdlmutexp.html
changeset 3352 6dc250ebdd80
parent 3351 8e0182c236d8
child 3353 6b14223dd5c7
     1.1 --- a/docs/html/sdlmutexp.html	Wed Oct 07 06:11:53 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,241 +0,0 @@
     1.4 -<HTML
     1.5 -><HEAD
     1.6 -><TITLE
     1.7 ->SDL_mutexP</TITLE
     1.8 -><META
     1.9 -NAME="GENERATOR"
    1.10 -CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
    1.11 -"><LINK
    1.12 -REL="HOME"
    1.13 -TITLE="SDL Library Documentation"
    1.14 -HREF="index.html"><LINK
    1.15 -REL="UP"
    1.16 -TITLE="Multi-threaded Programming"
    1.17 -HREF="thread.html"><LINK
    1.18 -REL="PREVIOUS"
    1.19 -TITLE="SDL_DestroyMutex"
    1.20 -HREF="sdldestroymutex.html"><LINK
    1.21 -REL="NEXT"
    1.22 -TITLE="SDL_mutexV"
    1.23 -HREF="sdlmutexv.html"></HEAD
    1.24 -><BODY
    1.25 -CLASS="REFENTRY"
    1.26 -BGCOLOR="#FFF8DC"
    1.27 -TEXT="#000000"
    1.28 -LINK="#0000ee"
    1.29 -VLINK="#551a8b"
    1.30 -ALINK="#ff0000"
    1.31 -><DIV
    1.32 -CLASS="NAVHEADER"
    1.33 -><TABLE
    1.34 -SUMMARY="Header navigation table"
    1.35 -WIDTH="100%"
    1.36 -BORDER="0"
    1.37 -CELLPADDING="0"
    1.38 -CELLSPACING="0"
    1.39 -><TR
    1.40 -><TH
    1.41 -COLSPAN="3"
    1.42 -ALIGN="center"
    1.43 ->SDL Library Documentation</TH
    1.44 -></TR
    1.45 -><TR
    1.46 -><TD
    1.47 -WIDTH="10%"
    1.48 -ALIGN="left"
    1.49 -VALIGN="bottom"
    1.50 -><A
    1.51 -HREF="sdldestroymutex.html"
    1.52 -ACCESSKEY="P"
    1.53 ->Prev</A
    1.54 -></TD
    1.55 -><TD
    1.56 -WIDTH="80%"
    1.57 -ALIGN="center"
    1.58 -VALIGN="bottom"
    1.59 -></TD
    1.60 -><TD
    1.61 -WIDTH="10%"
    1.62 -ALIGN="right"
    1.63 -VALIGN="bottom"
    1.64 -><A
    1.65 -HREF="sdlmutexv.html"
    1.66 -ACCESSKEY="N"
    1.67 ->Next</A
    1.68 -></TD
    1.69 -></TR
    1.70 -></TABLE
    1.71 -><HR
    1.72 -ALIGN="LEFT"
    1.73 -WIDTH="100%"></DIV
    1.74 -><H1
    1.75 -><A
    1.76 -NAME="SDLMUTEXP"
    1.77 -></A
    1.78 ->SDL_mutexP</H1
    1.79 -><DIV
    1.80 -CLASS="REFNAMEDIV"
    1.81 -><A
    1.82 -NAME="AEN7872"
    1.83 -></A
    1.84 -><H2
    1.85 ->Name</H2
    1.86 ->SDL_mutexP&nbsp;--&nbsp;Lock a mutex</DIV
    1.87 -><DIV
    1.88 -CLASS="REFSYNOPSISDIV"
    1.89 -><A
    1.90 -NAME="AEN7875"
    1.91 -></A
    1.92 -><H2
    1.93 ->Synopsis</H2
    1.94 -><DIV
    1.95 -CLASS="FUNCSYNOPSIS"
    1.96 -><A
    1.97 -NAME="AEN7876"
    1.98 -></A
    1.99 -><P
   1.100 -></P
   1.101 -><PRE
   1.102 -CLASS="FUNCSYNOPSISINFO"
   1.103 ->#include "SDL.h"
   1.104 -#include "SDL_thread.h"</PRE
   1.105 -><P
   1.106 -><CODE
   1.107 -><CODE
   1.108 -CLASS="FUNCDEF"
   1.109 ->int <B
   1.110 -CLASS="FSFUNC"
   1.111 ->SDL_mutexP</B
   1.112 -></CODE
   1.113 ->(SDL_mutex *mutex);</CODE
   1.114 -></P
   1.115 -><P
   1.116 -></P
   1.117 -></DIV
   1.118 -></DIV
   1.119 -><DIV
   1.120 -CLASS="REFSECT1"
   1.121 -><A
   1.122 -NAME="AEN7882"
   1.123 -></A
   1.124 -><H2
   1.125 ->Description</H2
   1.126 -><P
   1.127 ->Locks the <TT
   1.128 -CLASS="PARAMETER"
   1.129 -><I
   1.130 ->mutex</I
   1.131 -></TT
   1.132 ->, which was previously created with <A
   1.133 -HREF="sdlcreatemutex.html"
   1.134 -><TT
   1.135 -CLASS="FUNCTION"
   1.136 ->SDL_CreateMutex</TT
   1.137 -></A
   1.138 ->. If the mutex is already locked then <TT
   1.139 -CLASS="FUNCTION"
   1.140 ->SDL_mutexP</TT
   1.141 -> will not return until it is <A
   1.142 -HREF="sdlmutexv.html"
   1.143 ->unlocked</A
   1.144 ->. Returns <SPAN
   1.145 -CLASS="RETURNVALUE"
   1.146 ->0</SPAN
   1.147 -> on success, or <SPAN
   1.148 -CLASS="RETURNVALUE"
   1.149 ->-1</SPAN
   1.150 -> on an error.</P
   1.151 -><P
   1.152 ->SDL also defines a macro <TT
   1.153 -CLASS="LITERAL"
   1.154 ->#define SDL_LockMutex(m) SDL_mutexP(m)</TT
   1.155 ->.</P
   1.156 -></DIV
   1.157 -><DIV
   1.158 -CLASS="REFSECT1"
   1.159 -><A
   1.160 -NAME="AEN7894"
   1.161 -></A
   1.162 -><H2
   1.163 ->See Also</H2
   1.164 -><P
   1.165 -><A
   1.166 -HREF="sdlcreatemutex.html"
   1.167 -><TT
   1.168 -CLASS="FUNCTION"
   1.169 ->SDL_CreateMutex</TT
   1.170 -></A
   1.171 ->,
   1.172 -<A
   1.173 -HREF="sdlmutexv.html"
   1.174 -><TT
   1.175 -CLASS="FUNCTION"
   1.176 ->SDL_mutexV</TT
   1.177 -></A
   1.178 -></P
   1.179 -></DIV
   1.180 -><DIV
   1.181 -CLASS="NAVFOOTER"
   1.182 -><HR
   1.183 -ALIGN="LEFT"
   1.184 -WIDTH="100%"><TABLE
   1.185 -SUMMARY="Footer navigation table"
   1.186 -WIDTH="100%"
   1.187 -BORDER="0"
   1.188 -CELLPADDING="0"
   1.189 -CELLSPACING="0"
   1.190 -><TR
   1.191 -><TD
   1.192 -WIDTH="33%"
   1.193 -ALIGN="left"
   1.194 -VALIGN="top"
   1.195 -><A
   1.196 -HREF="sdldestroymutex.html"
   1.197 -ACCESSKEY="P"
   1.198 ->Prev</A
   1.199 -></TD
   1.200 -><TD
   1.201 -WIDTH="34%"
   1.202 -ALIGN="center"
   1.203 -VALIGN="top"
   1.204 -><A
   1.205 -HREF="index.html"
   1.206 -ACCESSKEY="H"
   1.207 ->Home</A
   1.208 -></TD
   1.209 -><TD
   1.210 -WIDTH="33%"
   1.211 -ALIGN="right"
   1.212 -VALIGN="top"
   1.213 -><A
   1.214 -HREF="sdlmutexv.html"
   1.215 -ACCESSKEY="N"
   1.216 ->Next</A
   1.217 -></TD
   1.218 -></TR
   1.219 -><TR
   1.220 -><TD
   1.221 -WIDTH="33%"
   1.222 -ALIGN="left"
   1.223 -VALIGN="top"
   1.224 ->SDL_DestroyMutex</TD
   1.225 -><TD
   1.226 -WIDTH="34%"
   1.227 -ALIGN="center"
   1.228 -VALIGN="top"
   1.229 -><A
   1.230 -HREF="thread.html"
   1.231 -ACCESSKEY="U"
   1.232 ->Up</A
   1.233 -></TD
   1.234 -><TD
   1.235 -WIDTH="33%"
   1.236 -ALIGN="right"
   1.237 -VALIGN="top"
   1.238 ->SDL_mutexV</TD
   1.239 -></TR
   1.240 -></TABLE
   1.241 -></DIV
   1.242 -></BODY
   1.243 -></HTML
   1.244 ->
   1.245 \ No newline at end of file