non-blocking?

30 views
Skip to first unread message

Jon

unread,
Aug 9, 2012, 4:30:44 PM8/9/12
to bridge...@googlegroups.com
Greetings, 

How do I use Bridge in a non-blocking way, so that my program can do other things while waiting for calls to come in?

(For example, I'm working with Kivy.  It has it's own internal event loop but provides events that I can use to trigger  activities.  I need kivy's internal loop (and my activities that kivy triggers) coexist with Bridge.)


Sridatta Thatipamala

unread,
Aug 9, 2012, 5:36:32 PM8/9/12
to bridge...@googlegroups.com
Hi Jon,
Bridge can coexist with other event-based libraries provided they are
using the same event loop. We try to use the canonical event library
on each platform. For example, in Python, Bridge uses Tornado and can
live with other Tornado-based things.

If Kivy uses its own loop rather than a widely accepted one, you may
be able to run Bridge in a seperate networking thread and run Kivy on
the main thread. Threads are a pain but it's a possible approach.

--Sridatta
> --
> You received this message because you are subscribed to the Google Groups
> "Bridge" group.
> To post to this group, send email to bridge...@googlegroups.com.
> To unsubscribe from this group, send email to
> bridge-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/bridge-users/-/ODhpNucES6UJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Jon Schull

unread,
Aug 9, 2012, 8:07:14 PM8/9/12
to bridge...@googlegroups.com
Thanks!

Kivy doesn't use tornado.
So I'm trying gevents.

Jon Schull     Jon.S...@rit.edu   cell: 585-738-6696 
Dept. of Interactive Games and Media, and Center for Student Innovation, RIT
My free/busy info is here.  For an appointment, make me an offer.
Reply all
Reply to author
Forward
0 new messages