Re: [Vala] Question re vala async example

On Thu, Jul 28, 2011 at 11:05:02AM +0800, Nor Jaidi Tuah wrote:
The code pasted below is from

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.

-- - The Universal Operating System

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]