diff options
| author | Wei Mao <[email protected]> | 2017-06-21 09:41:28 -0700 |
|---|---|---|
| committer | Wei Mao <[email protected]> | 2017-06-21 09:46:42 -0700 |
| commit | 6a7b5d032d331efe11d1c8f33f399296e529d9b7 (patch) | |
| tree | ef98ffe35d091fa7711ee7a843ee82d16c8180bd /general/echo/kmdf/driver/AutoSync/queue.c | |
| parent | 72d6e020298b18db58119f6b1ab66f1b917f0deb (diff) | |
issue #127: Remove timerConfig.AutomaticSerialization = FALSE from KMDF echo sample
Diffstat (limited to 'general/echo/kmdf/driver/AutoSync/queue.c')
| -rw-r--r-- | general/echo/kmdf/driver/AutoSync/queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
