Whats the best way to sleep a thread?



Hi all

I have an interesting situation: An Ndis driver creates a thread in
MiniportInitialise. For now thwe thread does nothing else.

When the system goes to standby the thread does a
KeWaitForSibngleObject on an event (which is never set) with a timeout
of 10 seconds.

However, I have noticed different behaviour coming out of Hibernate
while attatched to WinDbg.

Without the thread, the PC comes out of Hibernate attatched to the
debugger.

With the thread, the PC comes out of Hibernate not attatched to the
debugger.

I have also tried KeDelayExecutionThread() which gives exactly the
same results.

So the question is, is there a way to halt a thread without affecting
system functionality in this respect?

Thanks in advance.

.



Relevant Pages

  • Re: lost hibernate / stadby function please help
    ... Did it your fast way and I still had hibernate and standby functions... ... unchecked (all drivers / services except basic and hardware ones are ... "Tinkerer" wrote: ...
    (microsoft.public.windowsxp.general)
  • Re: lost hibernate / stadby function please help
    ... so if you get hibernate and standby in selective startup / all ... unchecked (all drivers / services except basic and hardware ones are ... and isolate the one that kills hibernate / standby functions. ...
    (microsoft.public.windowsxp.general)
  • Re: lost hibernate / stadby function please help
    ... if you get hibernate / standby with /basevideo only boot and i don't ... i guess it's safe to assume that it's not the video driver. ... > Did it your fast way and I still had hibernate and standby functions... ... > unchecked (all drivers / services except basic and hardware ones are ...
    (microsoft.public.windowsxp.general)
  • Re: resources?? cause computer to go slow??
    ... Hibernate and standby are two different things. ... there is a semi-normal load of Windows and then the ... then step the startup type up to manual. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: ATTN: Bob Lucas Re: Sleep mode in Win XP Pro SP 3? New.
    ... All I can say is in my daughter's case, mouse movement DID wake her Acer ... computer from hibernation (as opposed to standby). ... happened, because logic says that in hibernate mode, there is no power to ... whilst the power is on. ...
    (microsoft.public.windowsxp.help_and_support)