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 /m4 | |
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 'm4')
-rw-r--r-- | m4/.gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/.gitignore b/m4/.gitignore index 6b151ac9..4241a4fc 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -126,3 +126,5 @@ xsize.m4 /hash.m4 /inttostr.m4 /putenv.m4 +/thread.m4 +/yield.m4 |