You Are Here:

Community: Developer Discussion Boards

#1 Old block - 2008-12-04, 23:17

Join Date: Nov 2008
Posts: 139
widetech1
Offline
Regular Contributor
hi

how block the thread main?

thanks
Reply With Quote

#2 Old Re: block - 2008-12-05, 09:11

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia