[Vala] Delegates thread-safe
- From: Alexandre Rosenfeld <alexandre rosenfeld gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Delegates thread-safe
- Date: Thu, 15 Dec 2011 15:42:29 -0200
Hey guys,
I was recently creating a program where a delegate is passed around and
then executed inside different threads. The delegate itself was
thread-safe, I wasn't using anything that would cause a problem if it was
called from multiple threads. However the program kept crashing with memory
violations which were caused by objects that were previously freed.
So I came to the conclusion that using delegates in different threads are
not safe, but I didn't read it anywhere. Is that really true? Is there any
workaround to use the same delegate in separate threads?
Regards
*Alexandre Rosenfeld*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]