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

Unified Diff: content/renderer/media/audio_device.h

Issue 8659040: There is a racing between SyncSocket::Receive in audio_thread_ and SyncSocket::Close in renderer ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « no previous file | content/renderer/media/audio_device.cc » ('j') | content/renderer/media/audio_device.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.h
===================================================================
--- content/renderer/media/audio_device.h (revision 111890)
+++ content/renderer/media/audio_device.h (working copy)
@@ -165,6 +165,9 @@
// Our stream ID on the message filter. Only accessed on the IO thread.
int32 stream_id_;
+ // WaitableEvent for signaling the audio thread that it should stop.
+ base::WaitableEvent audio_event_;
enal1 2011/11/29 16:14:48 Maybe include "stop" in the name? Something like "
tommi (sloooow) - chröme 2011/11/29 16:41:53 audio_event_ -> stop_event_ or stop_audio_event_
+
// Data transfer between browser and render process uses a combination
// of sync sockets and shared memory to provide lowest possible latency.
scoped_ptr<base::SharedMemory> shared_memory_;
« no previous file with comments | « no previous file | content/renderer/media/audio_device.cc » ('j') | content/renderer/media/audio_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698