Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 2471

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_Mutex::wait - 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>CL_Mutex::wait</h1>
<p>  Releases the mutex this thread has taken out and sends the
  thread to sleep.</p>
<pre>
	void wait();
</pre>
<p><b>Detailed description:</b></p>  <p>Other threads can then acquire the mutex and
  modify any data. When another thread calls notify, the thread
  that called wait will wake up again and automatically reacquire
  the mutex.</p>

  <p>Warning: This function must not be called on an unlocked 
  mutex. You must call enter first.</p>

  <p>Warning: When wait returns (after another thread has called
  notify/notifyAll, the current thread will have a mutex lock. Be
  sure to call leave at some point.</p>

  <p>Warning: Not implemented under Win32. If you need it,
  please implement it in Sources/Core/System/Win32/mutex_win32.*,
  and send me the patch. :-)</p>
<p><b>See also:</b></p>
<p><a href="CL_Mutex.html">CL_Mutex</a></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 -->