gtestdbus: Add a note about thread safety to the documentation

https://bugzilla.gnome.org/show_bug.cgi?id=712148
This commit is contained in:
Philip Withnall 2013-12-03 08:27:05 +00:00
parent 7e9e7a66a1
commit c07eccd9c2

View File

@ -323,6 +323,12 @@ _g_test_watcher_remove_pid (GPid pid)
* A helper class for testing code which uses D-Bus without touching the user's
* session bus.
*
* Note that #GTestDBus modifies the users environment, calling setenv(). This
* is not thread-safe, so all #GTestDBus calls should be completed before
* threads are spawned, or should have appropriate locking to ensure no access
* conflicts to environment variables shared between #GTestDBus and other
* threads.
*
* <refsect2 id="gio-D-Bus-Test-Scaffolding">
* <title>Creating unit tests using GTestDBus</title>
* <para>