This commit is contained in:
19
script/test/TestBlockingThread.py
Normal file
19
script/test/TestBlockingThread.py
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
#abort()
|
||||
def do_loop():
|
||||
a=0
|
||||
while not is_aborted():
|
||||
a=a+1
|
||||
print "End"
|
||||
|
||||
|
||||
def do_loop():
|
||||
a=0
|
||||
while True:
|
||||
a=a+1
|
||||
#check_aborted()
|
||||
print "End"
|
||||
|
||||
|
||||
do_loop()
|
||||
#parallelize(do_loop)
|
||||
Reference in New Issue
Block a user