diff options
author | Richard Jones <rjones@redhat.com> | 2009-12-04 14:35:55 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-12-07 11:13:12 +0000 |
commit | cada248a53858341c91f70392e8f5b6e47d9b4fe (patch) | |
tree | f1850b3b2b5a673f59466425025c0593cd330465 /bootstrap | |
parent | 983e7a23456f413394a254f3aa4dbee271a30c47 (diff) | |
download | libguestfs-cada248a53858341c91f70392e8f5b6e47d9b4fe.tar.gz libguestfs-cada248a53858341c91f70392e8f5b6e47d9b4fe.tar.xz libguestfs-cada248a53858341c91f70392e8f5b6e47d9b4fe.zip |
lib: Add thread-safety to global list of handles.
This commit uses the Gnulib 'lock' module to implement a mutex on
the global list of handles which is stored by the library.
Note that Gnulib nicely avoids explicitly linking with -lpthread
unless the application program itself links to -lpthread. Locks
are only enabled in multithreaded applications.
$ ldd src/.libs/libguestfs.so.0.217.0
linux-vdso.so.1 => (0x00007fffcb7ff000)
libc.so.6 => /lib64/libc.so.6 (0x00007f96a4e6c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f96a544d000)
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -66,6 +66,7 @@ gnumakefile hash hash-pjw ignore-value +lock maintainer-makefile manywarnings netinet_in |