Re: [PATCH 1/3] coroutine: Add qemu_co_mutex_assert_locked()

2019-10-24 Thread Denis Lunev
On 10/24/19 1:54 PM, Kevin Wolf wrote: > Am 24.10.2019 um 11:59 hat Denis Lunev geschrieben: >> On 10/23/19 6:26 PM, Kevin Wolf wrote: >>> Some functions require that the caller holds a certain CoMutex for them >>> to operate correctly. Add a function so that they can assert the lock is >>> really

Re: [PATCH 1/3] coroutine: Add qemu_co_mutex_assert_locked()

2019-10-24 Thread Kevin Wolf
Am 24.10.2019 um 11:59 hat Denis Lunev geschrieben: > On 10/23/19 6:26 PM, Kevin Wolf wrote: > > Some functions require that the caller holds a certain CoMutex for them > > to operate correctly. Add a function so that they can assert the lock is > > really held. > > > > Cc: qemu-sta...@nongnu.org >

Re: [PATCH 1/3] coroutine: Add qemu_co_mutex_assert_locked()

2019-10-24 Thread Denis Lunev
On 10/23/19 6:26 PM, Kevin Wolf wrote: > Some functions require that the caller holds a certain CoMutex for them > to operate correctly. Add a function so that they can assert the lock is > really held. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Kevin Wolf > --- > include/qemu/coroutine.h |

[PATCH 1/3] coroutine: Add qemu_co_mutex_assert_locked()

2019-10-23 Thread Kevin Wolf
Some functions require that the caller holds a certain CoMutex for them to operate correctly. Add a function so that they can assert the lock is really held. Cc: qemu-sta...@nongnu.org Signed-off-by: Kevin Wolf --- include/qemu/coroutine.h | 7 +++ 1 file changed, 7 insertions(+) diff --git