Namespaces
Variants
Actions

Archived:How to do simple multitasking using PySymbian

Jump to: navigation, search
Archived.png
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.
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
This page was last modified on 8 May 2013, at 14:59.
171 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved