[Vala] Threads and async (was: Threads and closures problem)
- From: Michael 'Mickey' Lauer <mickey vanille-media de>
- To: Vala-list <Vala-list gnome org>
- Subject: [Vala] Threads and async (was: Threads and closures problem)
- Date: Thu, 14 Jan 2010 00:48:48 +0100
Jörn's mail about threads and closures reminded me about a problem I
wanted to highlight here.
The addition of async functions in Vala is a very great feature, however
I wonder how this could work with multiple threads? As far as I know,
the continuation is scheduled to be an idle callback against the main
context, right? If so, then this would mean that an async functions in a
thread B would only run in the B-context until the first 'yield',
afterwards it would continue to run in the A-context -- obviously
defeating the purpose of multithreading.
Are my worries justified and if so, how could we fix that?
Cheers,
--
:M:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]