Re: [Vala] Threads, synchronization & locking
- From: Andrea Del Signore <sejerpz tin it>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Threads, synchronization & locking
- Date: Tue, 02 Dec 2008 21:30:47 +0100
On Tue, 2008-12-02 at 21:21 +0100, Frederik wrote:
Andrea Del Signore wrote:
the lock keyword can be any "object", so I think that you could use
lock(fork)
{
//....
}
and forget about the mutex. Anyway I didn't try it and I don't know if
Vala permits the use of the lock keyword with an array.
Yes, actually that would be the right way. But then I wouldn't get the
mutex for 'cond.wait (mutex)'. :(
Regards,
Frederik
Yes, you are right.
Regards,
Andrea
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]