mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gtestdbus: Add a note about thread safety to the documentation
https://bugzilla.gnome.org/show_bug.cgi?id=712148
This commit is contained in:
parent
7e9e7a66a1
commit
c07eccd9c2
@ -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 user’s 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>
|
||||
|
Loading…
Reference in New Issue
Block a user