On Tue, 8 Mar 2005 00:05:53 +0200, Shlomi Cohen <[EMAIL PROTECTED]> wrote:

> as far as i know - async can only be implemented in threads otherwise its
> synchronous , so what is the limitation exactly ? 

No, actually asynchronous and threads are different things. Maybe the
Flash Player does use a separate thread for doing async calls (like I
imagine it probably uses one for garbage collection), but it doesn't
have to. A message loop kind of a thing (like Win32) should be
sufficient to handle async calls.

main_loop() {
while (new_event) {
if (new_event == network_event)
call_network_event_handler(new_event);
else // user interaction (keyboard/mouse)
call_user_interaction_handler(new_event);
}
}

Manish


Reply via email to