Hallo,
On Thu, Aug 7, 2014 at 1:46 PM, Álvaro Castro-Castilla alvaro.castro.castilla@gmail.com wrote:
Hi,
Specially in the mobile world, there are many platforms that force the developer to think and code its applications around events. Sometimes this is done with virtual functions or interface implementation, overriding methods, or plain C-style callbacks.
The problem is, in any of these cases, generally the main loop is controlled by the application. Since Gambit runs within the ___setup(params) function, and then quits (expecting ___cleanup() to be called), there is no way to easily adapt to this architecture except for running in a separate thread and communicating through messages or shared data.
Is there a better way to do this?
Why can't you package your program as a C library that has an API for the events?
Cheers, -- -alex http://unendli.ch/