From: Jan Engelhardt Date: Mon, 17 Feb 2014 14:31:28 +0000 (+0100) Subject: doc: reword "shared per-thread" wording X-Git-Tag: v209~81 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=deb480d1a7c3f3178c44f0aa73765181c0e2317f doc: reword "shared per-thread" wording Either it is shared across threads, or it is per-thread: decide. Reading the source code, I see a thread_local identifier, so that's that. But that does not yet preclude that a program may pass around the pointer returned from the function among its own threads. Do a best effort at saying so. --- diff --git a/man/sd_bus_open_user.xml b/man/sd_bus_open_user.xml index 9ddf2b89c..07b9aade4 100644 --- a/man/sd_bus_open_user.xml +++ b/man/sd_bus_open_user.xml @@ -129,8 +129,8 @@ along with systemd; If not, see . for more information about "machines". sd_bus_default_user() returns a bus - object connected to the user bus. This bus object is shared - per-thread. It is created on the first invocation of + object connected to the user bus. Each thread has its own object, but it + may be passed around. It is created on the first invocation of sd_bus_default_user(), and subsequent invocations returns a reference to the same object.