
On Tue, Nov 02, 2010 at 05:49:11PM +0000, Daniel P. Berrange wrote:
The util/threads.c/h code already has APIs for mutexes, condition variables and thread locals. This commit adds in code for actually creating threads.
* src/libvirt_private.syms: Export new symbols * src/util/threads.h: Define APIs virThreadCreate, virThreadSelf, virThreadIsSelf and virThreadJoin * src/util/threads-win32.c, src/util/threads-win32.h: Win32 impl of threads * src/util/threads-pthread.c, src/util/threads-pthread.h: POSIX impl of threads --- src/libvirt_private.syms | 4 +++ src/util/threads-pthread.c | 45 ++++++++++++++++++++++++++++++++++++++++++ src/util/threads-pthread.h | 4 +++ src/util/threads-win32.c | 47 ++++++++++++++++++++++++++++++++++++++++++++ src/util/threads-win32.h | 3 ++ src/util/threads.h | 15 ++++++++++++++ 6 files changed, 118 insertions(+), 0 deletions(-)
ACK Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/