[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 6/7] add assertions on the owner of a QemuMutex
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH 6/7] add assertions on the owner of a QemuMutex |
Date: |
Fri, 11 Feb 2011 13:54:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2011-02-11 13:14, Paolo Bonzini wrote:
> On 02/10/2011 07:25 PM, Jan Kiszka wrote:
>> On 2011-02-10 18:37, Paolo Bonzini wrote:
>>> These are already present in the Win32 implementation, add them to
>>> the pthread wrappers as well.
>>
>> Better use PTHREAD_MUTEX_ERRORCHECK.
>
> True. However, later I'd like to include tests that the mutex is held
> during cond_signal/cond_broadcast, so I would have to track the owner
> manually anyway.
You could still save the assertions where pthread does the work already.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
[Qemu-devel] [PATCH 7/7] remove CONFIG_THREAD, Paolo Bonzini, 2011/02/10
[Qemu-devel] [PATCH 1/7] unlock iothread during WaitForMultipleObjects, Paolo Bonzini, 2011/02/10