]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce portability APIs for creating threads
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Nov 2010 17:17:47 +0000 (17:17 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Nov 2010 16:03:09 +0000 (16:03 +0000)
commit64d67507097ad109e85ec347750078d123bc517c
treeb7fe3c336ff2a86f5c32ce25d977c97da08c4e47
parentbdb28f4426b10607fc1bf7b5be7b225f6e37a5cf
Introduce portability APIs for creating threads

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
src/util/threads-pthread.c
src/util/threads-pthread.h
src/util/threads-win32.c
src/util/threads-win32.h
src/util/threads.h