<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Mutex - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_Mutex</h1> <p> Mutex interface. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Core (System)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Mutex__create.html">create</a></p></td><td valign=top><p> Call this to create a mutex. (provided for 0.4 backward compatibility)</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mutex__CL_Mutex.html">CL_Mutex</a></p></td><td valign=top><p> Construct a new mutex.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Mutex__enter.html">enter</a></p></td><td valign=top><p> Enter the critical section.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mutex__leave.html">leave</a></p></td><td valign=top><p> Leave the critical section.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mutex__wait.html">wait</a></p></td><td valign=top><p> Releases the mutex this thread has taken out and sends the thread to sleep.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mutex__notify.html">notify</a></p></td><td valign=top><p> Notify wakes up the first thread that has gone to sleep on this mutex in order to wait for a notification.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Mutex__notify_all.html">notify_all</a></p></td><td valign=top><p> NotifyAll wakes up all threads waiting on the mutex.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/System! !header=core.h! <p>If you don't know what a mutex is, read a book. :-)</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->