mirror of https://gitee.com/openkylin/libvirt.git
Add locking for (nearly complete) thread safety to QEMU driver
This commit is contained in:
parent
ea960fb719
commit
3527f16a94
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 4 21:05:41 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemu_conf.h: Add a driver lock variable
|
||||
* src/qemu_driver.c: Add locking for thread safety
|
||||
|
||||
Thu Dec 4 21:01:41 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: Merge all return paths from driver APIs
|
||||
|
|
|
@ -51,6 +51,8 @@ enum qemud_cmd_flags {
|
|||
|
||||
/* Main driver state */
|
||||
struct qemud_driver {
|
||||
PTHREAD_MUTEX_T(lock);
|
||||
|
||||
unsigned int qemuVersion;
|
||||
int nextvmid;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue