From 6a7b5d032d331efe11d1c8f33f399296e529d9b7 Mon Sep 17 00:00:00 2001 From: Wei Mao Date: Wed, 21 Jun 2017 09:41:28 -0700 Subject: issue #127: Remove timerConfig.AutomaticSerialization = FALSE from KMDF echo sample --- general/echo/kmdf/driver/AutoSync/queue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'general/echo/kmdf/driver/AutoSync/queue.c') diff --git a/general/echo/kmdf/driver/AutoSync/queue.c b/general/echo/kmdf/driver/AutoSync/queue.c index b821add2..d881c003 100644 --- a/general/echo/kmdf/driver/AutoSync/queue.c +++ b/general/echo/kmdf/driver/AutoSync/queue.c @@ -86,7 +86,7 @@ Return Value: // with the same lock. // queueAttributes.SynchronizationScope = WdfSynchronizationScopeQueue; - + queueAttributes.EvtDestroyCallback = EchoEvtIoQueueContextDestroy; status = WdfIoQueueCreate( @@ -155,12 +155,12 @@ Return Value: PAGED_CODE(); // - // Create a WDFTIMER object + // Create a periodic timer. + // + // WDF_TIMER_CONFIG_INIT_PERIODIC sets AutomaticSerialization to TRUE by default. // WDF_TIMER_CONFIG_INIT_PERIODIC(&timerConfig, EchoEvtTimerFunc, Period); - timerConfig.AutomaticSerialization = FALSE; - WDF_OBJECT_ATTRIBUTES_INIT(&timerAttributes); timerAttributes.ParentObject = Queue; // Synchronize with the I/O Queue -- cgit v1.3.1