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
3 files changed
tree: c09f2b1d30d0ddebb993fcbb3b6764d245257e2a
  1. include/
  2. src/
  3. AUTHORS
  4. CONTRIBUTING
  5. CONTRIBUTORS
  6. LICENSE
  7. README
  8. README.md