Example #1
0
 def run_thread():
     for i in range(10):
         time.sleep(0.1)
         dprint("thread %s %d" % (thread.get_ident(), i))
         mstr = String("thread %s %d" % (thread.get_ident(), i))
         pstr = mstr.ToString()
         done.append(None)
         dprint("thread %s %d done" % (thread.get_ident(), i))