Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1747)

Unified Diff: device/base/synchronization/shared_memory_seqlock_buffer.h

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/base/synchronization/shared_memory_seqlock_buffer.h
diff --git a/device/base/synchronization/shared_memory_seqlock_buffer.h b/device/base/synchronization/shared_memory_seqlock_buffer.h
index 4835b097bc18d00832b581c192fc64b17e08b075..b12aefd763402de2ffa8e25f41cbbe561b58bd31 100644
--- a/device/base/synchronization/shared_memory_seqlock_buffer.h
+++ b/device/base/synchronization/shared_memory_seqlock_buffer.h
@@ -21,6 +21,8 @@ namespace device {
template <class Data>
class SharedMemorySeqLockBuffer {
public:
+ SharedMemorySeqLockBuffer(Data data) : data(data) {}
Sami 2016/11/02 19:01:42 nit: explicit
tdresser 2016/11/03 13:56:10 Done.
+ SharedMemorySeqLockBuffer() {}
OneWriterSeqLock seqlock;
Data data;
};

Powered by Google App Engine
This is Rietveld 408576698