mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
- Reintialize the timer object to reset the event object if there is no user timer in the list.
svn path=/trunk/; revision=5315
This commit is contained in:
parent
d72f016227
commit
e8644f681b
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: timer.c,v 1.7 2003/07/23 17:04:24 gvg Exp $
|
||||
/* $Id: timer.c,v 1.8 2003/07/29 18:17:53 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -380,6 +380,11 @@ TimerThreadMain(
|
|||
MsgTimer = CONTAINING_RECORD( TimerListHead.Flink, MSG_TIMER_ENTRY, ListEntry);
|
||||
KeSetTimer(&Timer, MsgTimer->Timeout, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Reinitialize the timer, this reset the state of the timer event on which we wait */
|
||||
KeInitializeTimer(&Timer);
|
||||
}
|
||||
|
||||
ExReleaseFastMutex(&Mutex);
|
||||
|
||||
|
|
Loading…
Reference in a new issue