Archived:How to do simple multitasking using PySymbian
Aquivado: Este artigo foi arquivado, pois o conteúdo não é mais considerado relevante para se criar soluções comerciais atuais. Se você achar que este artigo ainda é importante, inclua o template {{ForArchiveReview|escreva a sua justificativa}}.
All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
All PySymbian articles have been archived. PySymbian is no longer maintained by Nokia and is not guaranteed to work on more recent Symbian devices. It is not possible to submit apps to Nokia Store.
Article Metadata
Tested with
Devices(s): ...
Compatibility
Platform(s): S60 2nd Edition, S60 3rd Edition
Article
Keywords: e32
Created: cyke64
(15 Mar 2007)
Last edited: hamishwillee
(08 May 2013)
Overview
S60 phones use cooperative multitasking. You call e32.ao_yield() here and there to let other tasks run before they return back to you. e32.ao_lock() also plays a role when you wait for callback.
Code
import e32 #import module
from SomeBigLibrary import * # takes a very long time !
e32.ao_yield()
# your codes follow


(no comments yet)