summaryrefslogtreecommitdiffstats
path: root/src/polyp/polypaudio.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-05-17 11:07:16 +0000
committerPierre Ossman <ossman@cendio.se>2006-05-17 11:07:16 +0000
commitd4d1e5edf7af01b0d0e32da9fa323702f5174232 (patch)
treeb6249361794423612c62fe936d6eda0cdaf6f090 /src/polyp/polypaudio.h
parent71f681aa43156056965a906101e07b27c94eef45 (diff)
Documentation for the threaded main loop API.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@892 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp/polypaudio.h')
-rw-r--r--src/polyp/polypaudio.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/polyp/polypaudio.h b/src/polyp/polypaudio.h
index af80f9ea..5dd7aa10 100644
--- a/src/polyp/polypaudio.h
+++ b/src/polyp/polypaudio.h
@@ -66,6 +66,11 @@
* based style or if you want to use the advanced features of the
* polypaudio API. A guide can be found in \subpage async.
*
+ * By using the built-in threaded main loop, it is possible to acheive a
+ * pseudo-synchronous API, which can be useful in synchronous applications
+ * where the simple API is insufficient. See the \ref async page for
+ * details.
+ *
* \section thread_sec Threads
*
* The polypaudio client libraries are not designed to be used in a
@@ -73,12 +78,12 @@
* safe.
*
* To use a the libraries in a threaded environment, you must assure that
- * all objects are only used in the same thread they were created in.
- * Normally, this means that all objects belonging to a single context
- * must be accessed from the same thread.
+ * all objects are only used in one thread at a time. Normally, this means
+ * that all objects belonging to a single context must be accessed from the
+ * same thread.
*
* The included main loop implementation is also not thread safe. Take care
- * to make sure event lists are not manipulated when any library code is
+ * to make sure event lists are not manipulated when any other code is
* using the main loop.
*
* \section pkgconfig pkg-config