Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7533692
By: nikratio

I'm afraid this does not seem to work for me. Pressing the pause button (you
mean the button labelled 'suspend' between 'resume' and 'terminate', right?)
does not seem to have any effect at all. Could you try it with the following
testcase?

import threading
import time

lock = threading.RLock()

def run1():
    print 'Thread 1 acquiring lock...'
    lock.acquire()
    print 'Thread 1 holding lock'
    time.sleep(120)
    lock.release()
    print 'Thread 1 released lock'
    
def run2():
    time.sleep(1)
    print 'Thread 2 acquiring lock'
    lock.acquire()
    print 'Thread 2 got lock'
    lock.release()
    print 'Thread 2 released lock'
    
t1 = threading.Thread(target=run1)
t2 = threading.Thread(target=run2)
    
t1.start()
t2.start()

t1.join()
t2.join()

Thanks!
Nikolaus

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to