Time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
is any one can give me some hint how can i create
a mechanism that support time out.
for example:
i have a job that running and i want to check if this job exceed its time
limit.

what functions can i use??
and if any one has some sample ill appriciate it.

Thanks
 
Hi Rodrigo

yes i know that but i meant somthing else.
mu problem is :
im doing two threads.
but if im doing it with sleep() function it take allot of resources,
and the entire application slow down.

maybe you have an idea how it possible to solve without the sleep().
Thanks
 
Using WaitForSingleObject function you can specify how much time you want to
wait.


--
Un saludo
Rodrigo Corral González [MVP]

FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
 
Hi Rodrigo,
yes that was my problem because i put on
waitforsingleobject(xx,0) time=0
in do while loop
so all the time the program was busy.
after put a normal time like 10msec it released and evrything works nice.

Thanks
 

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

Back
Top