×
Namespaces

Variants
Actions
Revision as of 06:04, 30 November 2011 by hamishwillee (Talk | contribs)

Archived:How to do simple multitasking using PySymbian

From Nokia Developer Wiki
Jump to: navigation, search


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 (30 Nov 2011)

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
52 page views in the last 30 days.
×