docs: Include test-threads.c in the API reference

We can use the test-threads.c interactive test as part of the documentation
on how to use threads with Clutter.
This commit is contained in:
Emmanuele Bassi 2011-10-13 10:42:30 +01:00
parent c58baf42ca
commit ef1a3a5477

View File

@ -77,6 +77,16 @@
* g_timeout_add() that acquire the Clutter lock before invoking the provided
* callback: clutter_threads_add_idle() and
* clutter_threads_add_timeout().</para>
* <para>The example below shows how to use a worker thread to perform a
* blocking operation, and perform UI updates using the main loop.</para>
* <example id="worker-thread-example">
* <title>A worker thread example</title>
* <programlisting>
* <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../tests/interactive/test-thread.c">
* <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
* </xi:include>
* </programlisting>
* </example>
* </refsect2>
*/