From 7687028269450bdba1bdbc73b453e013d4a84ad6 Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Wed, 24 Dec 2014 14:19:01 -0500 Subject: [PATCH] Updates the InterrupatableSensorBase documentation to reflect the bug described in artf3623. Change-Id: I5f93dea65202cf30ba67c063eb8c90bedbfe43ae --- wpilibc/wpilibC++Devices/src/InterruptableSensorBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wpilibc/wpilibC++Devices/src/InterruptableSensorBase.cpp b/wpilibc/wpilibC++Devices/src/InterruptableSensorBase.cpp index badd6dfbdb..512c567a0b 100644 --- a/wpilibc/wpilibC++Devices/src/InterruptableSensorBase.cpp +++ b/wpilibc/wpilibC++Devices/src/InterruptableSensorBase.cpp @@ -101,7 +101,9 @@ void InterruptableSensorBase::CancelInterrupts() } /** - * In synchronous mode, wait for the defined interrupt to occur. + * In synchronous mode, wait for the defined interrupt to occur. You should NOT attempt to read the + * sensor from another thread while waiting for an interrupt. This is not threadsafe, and can cause + * memory corruption * @param timeout Timeout in seconds * @param ignorePrevious If true, ignore interrupts that happened before * WaitForInterrupt was called.