mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Add locking for (nearly complete) thread safety to QEMU driver
This commit is contained in:
1 parent
ea960fb719
commit
3527f16a94
3 files changed
+301
-76
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
+294
-76
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user