| Reply | « Previous Thread | Next Thread » |
|
hi
how block the thread main? thanks |
|
Wait for a lock object:
Code:
import thread import e32 def mythread(): global lock e32.ao_sleep(5) # Stop for five seconds. lock.signal() # Resume main thread. lock = e32.Ao_lock() t = thread.start_new_thread(mythread, ()) lock.wait() # Main thread stops here for five seconds. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Can we block incoming sms? | cars2003 | General Symbian C++ | 4 | 2009-01-16 19:27 |
| How to block call on E50 | honest_success | Mobile Java Networking & Messaging & Security | 4 | 2008-09-14 02:54 |
| sending data in one block over HTTP 1.0 | avibatbha | Symbian Networking & Messaging | 1 | 2008-01-07 19:04 |
| Problem writing in the internal Mifare 4k Invalid block byte range | arodriguez | Near Field Communication | 5 | 2007-09-21 15:33 |
| BLOCK MODE on 7160 TDMA | echapeta | General Messaging | 4 | 2003-05-06 14:22 |