Re: [Vala] Question re vala async example
- From: Luca Bruno <lethalman88 gmail com>
- To: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Question re vala async example
- Date: Thu, 28 Jul 2011 08:34:33 +0200
On Thu, Jul 28, 2011 at 11:05:02AM +0800, Nor Jaidi Tuah wrote:
The code pasted below is from http://live.gnome.org/Vala/AsyncSamples.
My query is: is the code safe?
What will happen if the thread runs to completion
before the main thread ever executes the yield?
The reason I'm asking is that currently I'm using a rather
ugly way to wait (Timeout and yield inside a while(somevar))
and the code below looks better. But I'm rather
concerned about its safety.
Idle.add makes everything safe.
--
http://www.debian.org - The Universal Operating System
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]