Blocking a thread for x seconds

  • Thread starter =?iso-8859-1?Q?Fernando=20Rodr=edguez?=
  • Start date
?

=?iso-8859-1?Q?Fernando=20Rodr=edguez?=

Hi,

I have a class that descends from threading.Thread. One method should block
the thread during x seconds and then call another method. How can I do this?
 
D

Diez B. Roggisch

Fernando said:
I have a class that descends from threading.Thread. One method should
block
the thread during x seconds and then call another method. How can I do
this?

time.sleep(x) [*]


* this comes witout any warranty about the slept time whatsoever under the
assumption that time.sleep is not run under a RTOS with guaranteed timings

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,289
Messages
2,571,435
Members
48,121
Latest member
ColinHibne

Latest Threads

Top