<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Tries a lock operation on the mutex. <ahref="#a787ecfd207fd25760a3c07517b69c148"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Unlocks all the mutexes owned by the invoking thread. <ahref="#ac149b2a2e188a1c00d1726671338b39d"></a><br/></td></tr>
<p><aclass="el"href="classchibios__rt_1_1_mutex.html"title="Class encapsulating a mutex.">Mutex</a> constructor. </p>
<p>The embedded <code><aclass="el"href="struct_mutex.html"title="Mutex structure.">Mutex</a></code> structure is initialized. </p>
<p>Definition at line <aclass="el"href="ch_8cpp_source.html#l00205">205</a> of file <aclass="el"href="ch_8cpp_source.html">ch.cpp</a>.</p>
<p>References <aclass="el"href="group__mutexes.html#gac55fe4d05aa6bbeb31594193d2e4d2b6">chMtxInit()</a>, and <aclass="el"href="classchibios__rt_1_1_mutex.html#a6fe411dfe88642cc7c379a59ea931da2">mutex</a>.</p>
<areashape="rect"id="node3"href="group__mutexes.html#gac55fe4d05aa6bbeb31594193d2e4d2b6"title="Initializes s Mutex structure."alt=""coords="192,5,256,32"/></map>
<tr><tdvalign="top"></td><tdvalign="top"><em>TRUE</em> </td><td>if the mutex was successfully acquired </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>FALSE</em> </td><td>if the lock attempt failed. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <aclass="el"href="ch_8cpp_source.html#l00210">210</a> of file <aclass="el"href="ch_8cpp_source.html">ch.cpp</a>.</p>
<p>References <aclass="el"href="group__mutexes.html#gaada14e216460dc55e1816234168cf95c">chMtxTryLock()</a>, and <aclass="el"href="classchibios__rt_1_1_mutex.html#a6fe411dfe88642cc7c379a59ea931da2">mutex</a>.</p>
<areashape="rect"id="node3"href="group__mutexes.html#gaada14e216460dc55e1816234168cf95c"title="Tries to lock a mutex."alt=""coords="203,5,293,32"/><areashape="rect"id="node5"href="group__mutexes.html#gadbf0bd4a36b1f7e33ee41939df32ab78"title="Tries to lock a mutex."alt=""coords="343,5,439,32"/></map>
<p>Performs a lock operation on the mutex, if the mutex is already locked then the thread enters the mutex priority queue and waits. </p>
<p>Definition at line <aclass="el"href="ch_8cpp_source.html#l00215">215</a> of file <aclass="el"href="ch_8cpp_source.html">ch.cpp</a>.</p>
<p>References <aclass="el"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba">chMtxLock()</a>, and <aclass="el"href="classchibios__rt_1_1_mutex.html#a6fe411dfe88642cc7c379a59ea931da2">mutex</a>.</p>
<areashape="rect"id="node3"href="group__mutexes.html#gafa06b82e3496c44eb7bf31d9f1b655ba"title="Locks the specified mutex."alt=""coords="187,5,261,32"/><areashape="rect"id="node5"href="group__mutexes.html#ga2d6350c2d147d1165c359f30798205f5"title="Locks the specified mutex."alt=""coords="311,5,391,32"/></map>
<areashape="rect"id="node3"href="group__mutexes.html#gae9ae07165126c9f6c0ce0b17bdb53669"title="Unlocks the next owned mutex in reverse lock order."alt=""coords="197,31,280,57"/><areashape="rect"id="node5"href="group__scheduler.html#gae47a8819a21ef2d521124e76bfb37c95"title="Wakes up a thread."alt=""coords="328,5,427,32"/><areashape="rect"id="node7"href="group__internals.html#ga042479f09357fc59befebf4dfe0e9f4a"title="Removes the first-out Thread from a queue and returns it."alt=""coords="337,56,417,83"/></map>
<p>Unlocks all the mutexes owned by the invoking thread. </p>
<p>This operation is <b>MUCH MORE</b> efficient than releasing the mutexes one by one and not just because the call overhead, this function does not have any overhead related to the priority inheritance mechanism. </p>
<p>Definition at line <aclass="el"href="ch_8hpp_source.html#l00366">366</a> of file <aclass="el"href="ch_8hpp_source.html">ch.hpp</a>.</p>
<p>Referenced by <aclass="el"href="classchibios__rt_1_1_mutex.html#a1726d7244983f7be74fcfa9cfb63745f">Lock()</a>, <aclass="el"href="classchibios__rt_1_1_mutex.html#a00b2ff557451955a905ecdca2855389b">Mutex()</a>, and <aclass="el"href="classchibios__rt_1_1_mutex.html#a787ecfd207fd25760a3c07517b69c148">TryLock()</a>.</p>
Generated on Sun Nov 28 2010 14:09:59 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>