blob: 6922de43f8372052d3f8066b3867e083aaa88228 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>semaphore</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="VIPS Reference Manual">
<link rel="up" href="ch04.html" title="Other API (no gtkdoc comments yet)">
<link rel="prev" href="libvips-rect.html" title="rect">
<link rel="next" href="libvips-dispatch.html" title="dispatch">
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libvips-rect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch04.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">VIPS Reference Manual</th>
<td><a accesskey="n" href="libvips-dispatch.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libvips-semaphore.synopsis" class="shortcut">Top</a>
 | 
<a href="#libvips-semaphore.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="semaphore">
<a name="libvips-semaphore"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libvips-semaphore.top_of_page"></a>semaphore</span></h2>
<p>semaphore</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libvips-semaphore.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t">im_semaphore_t</a>;
<span class="returnvalue">int</span> <a class="link" href="libvips-semaphore.html#im-semaphore-up" title="im_semaphore_up ()">im_semaphore_up</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-semaphore.html#im-semaphore-down" title="im_semaphore_down ()">im_semaphore_down</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-semaphore.html#im-semaphore-upn" title="im_semaphore_upn ()">im_semaphore_upn</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>);
<span class="returnvalue">int</span> <a class="link" href="libvips-semaphore.html#im-semaphore-downn" title="im_semaphore_downn ()">im_semaphore_downn</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libvips-semaphore.html#im-semaphore-destroy" title="im_semaphore_destroy ()">im_semaphore_destroy</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libvips-semaphore.html#im-semaphore-init" title="im_semaphore_init ()">im_semaphore_init</a> (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> v</code></em>,
<em class="parameter"><code><span class="type">char</span> *name</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libvips-semaphore.description"></a><h2>Description</h2>
</div>
<div class="refsect1" title="Details">
<a name="libvips-semaphore.details"></a><h2>Details</h2>
<div class="refsect2" title="im_semaphore_t">
<a name="im-semaphore-t"></a><h3>im_semaphore_t</h3>
<pre class="programlisting">typedef struct {
char *name;
int v;
GMutex *mutex;
GCond *cond;
} im_semaphore_t;
</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_up ()">
<a name="im-semaphore-up"></a><h3>im_semaphore_up ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_semaphore_up (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_down ()">
<a name="im-semaphore-down"></a><h3>im_semaphore_down ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_semaphore_down (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_upn ()">
<a name="im-semaphore-upn"></a><h3>im_semaphore_upn ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_semaphore_upn (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_downn ()">
<a name="im-semaphore-downn"></a><h3>im_semaphore_downn ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span> im_semaphore_downn (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> n</code></em>);</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_destroy ()">
<a name="im-semaphore-destroy"></a><h3>im_semaphore_destroy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> im_semaphore_destroy (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>);</pre>
</div>
<hr>
<div class="refsect2" title="im_semaphore_init ()">
<a name="im-semaphore-init"></a><h3>im_semaphore_init ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> im_semaphore_init (<em class="parameter"><code><a class="link" href="libvips-semaphore.html#im-semaphore-t" title="im_semaphore_t"><span class="type">im_semaphore_t</span></a> *s</code></em>,
<em class="parameter"><code><span class="type">int</span> v</code></em>,
<em class="parameter"><code><span class="type">char</span> *name</code></em>);</pre>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.14</div>
</body>
</html>