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

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: Histogram nits Created 4 years 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
« no previous file with comments | « device/base/synchronization/one_writer_seqlock.cc ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1ad5a8a6a6093f90071ed2e180e85ea9dac3f65c 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() {}
+ explicit SharedMemorySeqLockBuffer(const Data& data) : data(data) {}
OneWriterSeqLock seqlock;
Data data;
};
« no previous file with comments | « device/base/synchronization/one_writer_seqlock.cc ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698