[sugar] Using threads in an Activity

Erik Blankinship erikb
Sun Jul 20 08:26:36 EDT 2008


Here is some code which runs multiple threads successfully on an xo.  Look
for "ServerThread":

http://mediamods.com/public-svn/map-activity/Map.activity/map.py

On Sat, Jul 19, 2008 at 10:26 PM, Shikhar <shikhar at schmizz.net> wrote:

> Hi,
>
> I am trying to use threads in my activity.  However, the UI locks up
> while the thread runs. Actually, it is somewhat strange what happens:
> the thread is already initialized and running, waiting on a Queue for a
> work request. After I make a request, this is when the UI locks up
> (although the request completes)
>
> I have tried both gtk.gdk.threads_init() and gobject.threads_init() in
> my activity initialization before I call super
>
> What am I missing?
>
> Hope not being very inane...
>
> Thanks,
>
> Shikhar <http://lists.laptop.org/listinfo/sugar>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080720/a456e182/attachment.html 



More information about the Sugar-devel mailing list