Stefan Hajnoczi 2da61b671e rfifolock: add recursive FIFO lock
QemuMutex does not guarantee fairness and cannot be acquired
recursively:

Fairness means each locker gets a turn and the scheduler cannot cause
starvation.

Recursive locking is useful for composition, it allows a sequence of
locking operations to be invoked atomically by acquiring the lock around
them.

This patch adds RFifoLock, a recursive lock that guarantees FIFO order.
Its first user is added in the next patch.

RFifoLock has one additional feature: it can be initialized with an
optional contention callback.  The callback is invoked whenever a thread
must wait for the lock.  For example, it can be used to poke the current
owner so that they release the lock soon.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-03-13 14:42:21 +01:00
2014-03-11 19:52:32 +00:00
2014-03-12 16:45:25 +00:00
2014-03-12 17:26:40 +01:00
2014-03-03 09:46:27 +04:00
2014-03-12 17:26:40 +01:00
2014-03-13 14:42:21 +01:00
2014-03-11 13:03:22 +00:00
2014-03-13 14:42:21 +01:00
2014-03-12 17:26:32 +01:00
2014-03-11 19:52:32 +00:00
2014-02-25 14:30:28 +01:00
2014-02-25 10:50:11 +00:00
2014-02-25 10:50:11 +00:00
2014-03-05 03:06:24 +01:00
2014-03-10 19:14:11 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
Readme 531 MiB
Languages
C 82.5%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.6%