[Gambas-user] gb.task and the event loop?

Olivier Cruilles linuxos at ...1896...
Tue Dec 25 14:44:38 CET 2012


Hello,

Try this one:  

This program start 10 tasks and each task is an SSH connection on your machine by the 127.0.0.1 address.

Change just the login and password to adjust it 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Essai1-0.0.19.tar.gz
Type: application/x-gzip
Size: 15898 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121225/ff2fd4ad/attachment.bin>
-------------- next part --------------


Cordialement,

Olivier Cruilles
Mail: linuxos at ...1896...

Le 23 d?c. 2012 ? 23:08, Tobias Boege <taboege at ...626...> a ?crit :

> Hi Benoit,
> 
> we have gb.task on our schedule now and I found two examples on the mailing
> list:
> 
> - Olivier Cruilles: [0]
> - Ivan Kern:        [1]
> 
> Well, the first one seems to be designed to do nothing (no Task-inheriting
> object is instantiated at all - I don't know if it did work the time it was
> written, though) but if one modifies it to create a Task, it is almost
> instantly killed; just as if the Main() was executed and no event loop kicks
> in, even if a Timer was created which, according to [2], compels the event
> loop.
> 
> The second example, mainly listed for completeness, shows a workaround but
> not a really satisfying one if one would like to do something else than
> waiting.
> 
> So, is (or "shall be") gb.task allow operation with the event loop? What's
> wrong with the first example (the modified one)?
> 
> Regards,
> Tobi
> 
> [0] http://gambas.8142.n7.nabble.com/attachment/24430/0/gbTask-0.0.1.tar.gz
> [1] http://gambas.8142.n7.nabble.com/attachment/17637/0/TaskTest.zip
> 
> [2] http://gambasdoc.org/help/cat/eventloop?v3
> 
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list