summaryrefslogtreecommitdiff
path: root/rsSignal.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-08-12 15:05:15 -0700
committerJason Sams <rjsams@android.com>2011-08-12 15:05:15 -0700
commite0aab4a8ff1cffd8cfaedc2623db94072549e0e5 (patch)
treefee101e30cdb0adca49daf18b99fea1a8e8eb5c5 /rsSignal.h
parent1f5f9a30d71973f0c54e0142ed80740b71c720e3 (diff)
downloadrs-e0aab4a8ff1cffd8cfaedc2623db94072549e0e5.tar.gz
Fix the RS frame timeout.
Previous a slow app would block from receiving new commands until the timer expired. This change will expire the timer immediatly. Change-Id: I42b949d21f98ee0f1d3156763cd723c3e9cabb67
Diffstat (limited to 'rsSignal.h')
-rw-r--r--rsSignal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rsSignal.h b/rsSignal.h
index 2e760f15..fc318830 100644
--- a/rsSignal.h
+++ b/rsSignal.h
@@ -31,7 +31,10 @@ public:
bool init();
void set();
- void wait();
+
+ // returns true if the signal occured
+ // false for timeout
+ bool wait(uint64_t timeout = 0);
protected:
bool mSet;