libsanitizer: add filtering of sleep intervals for BackgroundThread.
[platform/upstream/linaro-gcc.git] / libsanitizer / sanitizer_common / sanitizer_common.h
index 3c1d1a5..fb06aa4 100644 (file)
@@ -765,6 +765,12 @@ INLINE uptr GetPthreadDestructorIterations() {
 #endif
 }
 
+// Used for tweaking sleep duration
+struct SleepInterval {
+  int duration_ms;
+  bool ends_with_event;
+};
+
 void *internal_start_thread(void(*func)(void*), void *arg);
 void internal_join_thread(void *th);
 void MaybeStartBackgroudThread();