<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<refentry id="is_msg_queue_empty"> <!-- ID for references -->

<refmeta>
<refentrytitle>is_msg_queue_empty</refentrytitle> <!-- title shown in references -->
<manvolnum>3</manvolnum></refmeta> <!-- man volume id (3 for libraries) -->

<refnamediv>
<refname>is_msg_queue_empty</refname> <!-- function name -->
<refpurpose>test if message queue empty</refpurpose> <!-- short function description -->
</refnamediv>

<refsynopsisdiv><funcsynopsis>
<funcsynopsisinfo>
#include &lt;cds/msg_queue.h&gt; <!-- included headers -->
</funcsynopsisinfo>

<funcprototype> <!-- function prototype -->
  <funcdef>int <function>is_msg_queue_empty</function></funcdef>
  <paramdef>msg_queue_t *<parameter>q</parameter></paramdef>
</funcprototype>

</funcsynopsis></refsynopsisdiv>

<refsect1><title>Description</title>
<para>Tests message queue if it is empty.
<!-- detailed description -->
</para>

</refsect1>

<refsect1><title>Return value</title>
<para>Returns nonzero if message queue empty, zero otherwise.
<!-- return value description -->
</para>
</refsect1>

<refsect1><title>See Also</title>
<para>
<xref linkend="push_message"/>, <xref linkend="pop_message"/>
<!-- references to other pages -->
</para>
</refsect1>

</refentry>