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
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to