Home
last modified time | relevance | path

Searched full:corwlock (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/include/qemu/
H A Dcoroutine.h173 typedef struct CoRwlock { struct
181 } CoRwlock; argument
184 * Initialises a CoRwlock. This must be called before any other operation
185 * is used on the CoRwlock
187 void qemu_co_rwlock_init(CoRwlock *lock);
190 * Read locks the CoRwlock. If the lock cannot be taken immediately because
194 void coroutine_fn qemu_co_rwlock_rdlock(CoRwlock *lock);
197 * Write Locks the CoRwlock from a reader. This is a bit more efficient than
203 void coroutine_fn qemu_co_rwlock_upgrade(CoRwlock *lock);
211 void coroutine_fn qemu_co_rwlock_downgrade(CoRwlock *lock);
[all …]
/openbmc/qemu/util/
H A Dqemu-coroutine-lock.c338 void qemu_co_rwlock_init(CoRwlock *lock) in qemu_co_rwlock_init()
346 static void coroutine_fn qemu_co_rwlock_maybe_wake_one(CoRwlock *lock) in qemu_co_rwlock_maybe_wake_one()
379 void coroutine_fn qemu_co_rwlock_rdlock(CoRwlock *lock) in qemu_co_rwlock_rdlock()
404 void coroutine_fn qemu_co_rwlock_unlock(CoRwlock *lock) in qemu_co_rwlock_unlock()
422 void coroutine_fn qemu_co_rwlock_downgrade(CoRwlock *lock) in qemu_co_rwlock_downgrade()
432 void coroutine_fn qemu_co_rwlock_wrlock(CoRwlock *lock) in qemu_co_rwlock_wrlock()
452 void coroutine_fn qemu_co_rwlock_upgrade(CoRwlock *lock) in qemu_co_rwlock_upgrade()
/openbmc/qemu/hw/9pfs/
H A D9p.h353 CoRwlock rename_lock;
/openbmc/qemu/tests/unit/
H A Dtest-coroutine.c265 static CoRwlock rwlock;