<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>Chapter 11. Mutex API reference</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="Unreliable Guide To Locking" /><link rel="up" href="index.html" title="Unreliable Guide To Locking" /><link rel="prev" href="dont-sleep.html" title="Some Functions Which Don't Sleep" /><link rel="next" href="API-mutex-init.html" title="mutex_init" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 11. Mutex API reference</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="dont-sleep.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="API-mutex-init.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="apiref-mutex"></a>Chapter 11. Mutex API reference</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="refentrytitle"><a href="API-mutex-init.html"><span class="phrase">mutex_init</span></a></span><span class="refpurpose"> — initialize the mutex </span></dt><dt><span class="refentrytitle"><a href="API-mutex-is-locked.html"><span class="phrase">mutex_is_locked</span></a></span><span class="refpurpose"> — is the mutex locked </span></dt><dt><span class="refentrytitle"><a href="API-mutex-lock.html"><span class="phrase">mutex_lock</span></a></span><span class="refpurpose"> — acquire the mutex </span></dt><dt><span class="refentrytitle"><a href="API-mutex-unlock.html"><span class="phrase">mutex_unlock</span></a></span><span class="refpurpose"> — release the mutex </span></dt><dt><span class="refentrytitle"><a href="API-ww-mutex-unlock.html"><span class="phrase">ww_mutex_unlock</span></a></span><span class="refpurpose"> — release the w/w mutex </span></dt><dt><span class="refentrytitle"><a href="API-mutex-lock-interruptible.html"><span class="phrase">mutex_lock_interruptible</span></a></span><span class="refpurpose"> — acquire the mutex, interruptible </span></dt><dt><span class="refentrytitle"><a href="API-mutex-trylock.html"><span class="phrase">mutex_trylock</span></a></span><span class="refpurpose"> — try to acquire the mutex, without waiting </span></dt><dt><span class="refentrytitle"><a href="API-atomic-dec-and-mutex-lock.html"><span class="phrase">atomic_dec_and_mutex_lock</span></a></span><span class="refpurpose"> — return holding mutex if we dec to 0 </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="dont-sleep.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="API-mutex-init.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Some Functions Which Don't Sleep </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">mutex_init</span></td></tr></table></div></body></html>