Re: event vs volatile bool

From: manu (manu_at_manu.net)
Date: 11/03/04


Date: Wed, 3 Nov 2004 14:53:11 +0100


> In your case it's the same but in really you don't need while loop in the
> case of event , just after another thread set event your
> WaitForSingleObject will awake and do the business , that difference
between
> polling scenario vs. notification
> Arkady

yes, but i need to do the stuff every second, the event could be raised
after 100, 1000 seconds, that stops everything.



Relevant Pages

  • Re: stupid error doing my head it! (C programming)
    ... This loop either never runs or never stops. ... c is a const pointer to char, bufferis presumably of type char. ... Believe the compiler when it gives you an error. ...
    (comp.programming)
  • Re: Stop Light Design
    ... >> drives the yellow TRIAC and turns the yellow light on for ever ... When it times out it stops ... >> green TRIAC and turns the green light on for ever how long ... > forever loop; endless loop ...
    (sci.electronics.design)
  • Re: Running a background task
    ... and Handle_Msg stops when the rendezvous is done. ... Handle_Msg will never proceed past the entry call. ... If I move the loop outside ...
    (comp.lang.ada)
  • Re: LSP and memo leak?
    ... the network stack was broken or not and I need them to be in the loop ... Any clue how could I detect where in the LSP is this leak? ... >But why you need WSAStart/Cleanup in the loop? ... >> Arkady, if I remove WSAStart/Cleanup out of the loop the memory doesn't ...
    (microsoft.public.win32.programmer.networks)
  • Re: wierd standalone application behaviour
    ... initializes and starts executing but ... it starts slowing down and eventually stops. ... Speed up the loop. ...
    (comp.soft-sys.matlab)