OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "media/audio/audio_thread.h" | |
6 | |
7 #include "base/lazy_instance.h" | |
8 | |
9 static base::LazyInstance<media::AudioThread> g_thread = | |
10 LAZY_INSTANCE_INITIALIZER; | |
11 | |
12 namespace media { | |
13 | |
14 AudioThread::AudioThread() : thread_("Audio") { | |
15 #if defined(OS_WIN) | |
16 thread_.init_com_with_mta(true); | |
tommi (sloooow) - chröme
2016/03/19 02:32:41
just checking - is this how things were before? u
alokp
2016/03/22 21:47:07
yes this code is moved from elsewhere. I can remov
| |
17 #endif | |
18 CHECK(thread_.Start()); | |
19 } | |
20 | |
21 // static | |
22 base::Thread* AudioThread::Get() { | |
23 return &(g_thread.Get().thread_); | |
24 } | |
25 | |
26 } // namespace media | |
OLD | NEW |