commit | deffe41960a806f3fe576ed7f38d7faee22d0346 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Mon Sep 18 17:34:51 2017 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Tue Sep 19 08:44:43 2017 -0700 |
tree | c09f2b1d30d0ddebb993fcbb3b6764d245257e2a | |
parent | a77a0d4a108ad66e9370f7aeb9c06d80c139b7c7 [diff] |
Fix AAudioLoader Fixed the following issues: -- using a static member variable for a singleton is not thread-safe without explicit synchronization. A better approach is to use a static variable in 'getInstance' function, which is guaranteed to be synchronized by the standard; -- the constructor has to be private; -- the destructor doesn't need to be virtual; -- inconsistend header guard name. Change-Id: Ia926ce7601a2166d29d2558ceea51e122ce89232