[Gambas-user] how to make threats

Fabien Bodard gambas.fr at ...626...
Wed Nov 13 21:16:39 CET 2013


2013/11/13 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> Tobias respond me this in another topic:
>
> From: Tobias Boege <taboege at ...626...>
>> Subject: Re: [Gambas-user] wait vs sleep confusion, console works,
>>
>> Ahh. Actually, there is no "main thread" or something. Gambas is single-
>> threaded throughout. In GUI programs, the so-called "event loop" kicks in
>> automatically because you have windows open. See the docs[0].
>
> That its a bad notice for me.. i think about simulate that multithread
> by making separate projects and call each then complied as EXECT AS
> PROCESS etc etc.. this can work as expected? but i dont know how to
> manage multiple projects inside one in the ide!
>
>> You can also
>> force the event loop to run by putting
>>
>> While True
>>   Wait 2 ^ 30
>> Wend
>>
> yeah that's basic men, but my program its a daemon that must
> downloading several files parallel, so with this loop only acepts one
> event per loop (either if i use wget as process and manage such)
>
>> BTW: Gambas is a nice language. You cannot make threats with it :-)
> yeah i like very much gambas, not for easy, DUE ITS NOT PORTED TO GUINDOWS!
>
>> Threads are also not possible in Gambas currently. (You should look up the word
>> "threat" in a dictionary.) The closest thing you can have is "Task" but
>> I've
>> no experience with this.
>
> where i find examples about taks in gambas?
in the fractal example
>
>>
>> Regards,
>> Tobi
>>
>
> --
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list