summaryrefslogtreecommitdiff
path: root/lib/tsan/rtl/tsan_flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tsan/rtl/tsan_flags.h')
-rw-r--r--lib/tsan/rtl/tsan_flags.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_flags.h b/lib/tsan/rtl/tsan_flags.h
index 2fdcc2f1b..6547911ec 100644
--- a/lib/tsan/rtl/tsan_flags.h
+++ b/lib/tsan/rtl/tsan_flags.h
@@ -77,6 +77,11 @@ struct Flags {
// the amount of memory accesses, up to history_size=7 that amounts to
// 4M memory accesses. The default value is 2 (128K memory accesses).
int history_size;
+ // Controls level of synchronization implied by IO operations.
+ // 0 - no synchronization
+ // 1 - reasonable level of synchronization (write->read)
+ // 2 - global synchronization of all IO operations
+ int io_sync;
};
Flags *flags();