projects
/
platform
/
upstream
/
linaro-gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsanitizer: add filtering of sleep intervals for BackgroundThread.
[platform/upstream/linaro-gcc.git]
/
libsanitizer
/
sanitizer_common
/
sanitizer_common.h
diff --git
a/libsanitizer/sanitizer_common/sanitizer_common.h
b/libsanitizer/sanitizer_common/sanitizer_common.h
index
3c1d1a5
..
fb06aa4
100644
(file)
--- a/
libsanitizer/sanitizer_common/sanitizer_common.h
+++ b/
libsanitizer/sanitizer_common/sanitizer_common.h
@@
-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();