]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Support for atomic operations on integers
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 19 Apr 2012 14:21:43 +0000 (10:21 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 19 Apr 2012 14:21:43 +0000 (10:21 -0400)
commit71bc80b60e70084812deb646c8a12a964c2463ba
treeafc541932a13f11c66a2be0eeb7f2317a1ab3e06
parent6241eed3dbfb68ab8404552432042d29c4e75f94
Support for atomic operations on integers

For threading support, add atomic add and sub operations working on
integers. Base this on locking support provided by virMutex.
src/util/viratomic.h [new file with mode: 0644]