Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multithreading && MFC

Status
Not open for further replies.

Bartec

Programmer
Jan 21, 2005
54
PL
Hi!
Does anybody know how I can make a PAUSE in my thread?? I know howw to stop start but is it possible to pause??

thanks for response

Bartek
 
don't know of straightforward way... since i'm new to multithreading...

but if you're using unix, maybe you could use select with a timeout value and a garbage file descriptor...

i'm not sure.. but if you call sleep within the thread maybe that will work too...
 
What do you mean by pause?

To just have it wait a while simply use the Sleep function.

To explicitly stop/resume it use CWinThread::SuspendThread/ResumeThread





/Per
[sub]
www.perfnurt.se[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top