]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Use a mutex when retrieving threadpool data
authorErik Skultety <eskultet@redhat.com>
Mon, 4 Apr 2016 20:32:16 +0000 (22:32 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 18 Apr 2016 15:07:09 +0000 (17:07 +0200)
commite981607e4ab32152c6b410c72f95baca723d8000
tree08c32fa8fa9dc9aa5909c2bc83e3e74020bc0a3a
parent79685175937e88f1ac63f2cc10072d5c78a4c66c
util: Use a mutex when retrieving threadpool data

So far, the values the affected getters retrieve are static, i.e. there's no
way of changing them during runtime. But admin interface will later enable
not only getting but changing them as well. So to prevent phenomenons like
torn reads or concurrent reads and writes of unaligned values, use mutual
exclusion when getting these values (writes do, understandably, use them
already).

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virthreadpool.c