]> git.ipfire.org Git - thirdparty/lxc.git/commit
check pthread_atfork and thread-local storage
authorS.Çağlar Onur <caglar@10ur.org>
Sat, 4 Jan 2014 05:00:04 +0000 (00:00 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Jan 2014 14:46:32 +0000 (09:46 -0500)
commitbabbea4b30ff74958a57af623280dec68219df23
treec722713e918d5a2652911d2b95d5bafaae48c648
parent67c4fe9b2dc41b843dbac1b3b38ea96e4d2b6a07
check pthread_atfork and thread-local storage

Add pthread_atfork check to configure.ac and uses it when necessary,
Introduces tls.m4 macro for checking thread-local storage support, Puts
values array into thread-local storage
(lxc_global_config_value@src/lxc/utils.c), Removes
static_lock/static_unlock from LXC code.

Lastly, it introduces a warning for bionic users about multithreaded
usage of LXC.

(requires 64b1be2903078ef9e9ba3ffcbc30a4dc9bc5cc6c to be reverted first)

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/tls.m4 [new file with mode: 0644]
configure.ac
src/lxc/lxclock.c
src/lxc/lxclock.h
src/lxc/utils.c