Whats the best way to sleep a thread?
- From: matt_sykes <zzebowa@xxxxxxxxxxx>
- Date: 9 May 2007 00:57:49 -0700
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.
.
- Follow-Ups:
- Re: Whats the best way to sleep a thread?
- From: euacela@xxxxxxxxx
- Re: Whats the best way to sleep a thread?
- Prev by Date: Re: WDM USB driver trouble under vista.
- Next by Date: Printer installation
- Previous by thread: Re: WDM USB driver trouble under vista.
- Next by thread: Re: Whats the best way to sleep a thread?
- Index(es):
Relevant Pages
|