commit | 2773dd7219e6cdc56471501c90808a1bafc31d39 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Fri Dec 08 10:12:11 2017 -0800 |
committer | Mikhail Naganov <mnaganov@google.com> | Fri Dec 08 12:03:28 2017 -0800 |
tree | 9a514d61c4b618a1a2599c766e0e5b088876e542 | |
parent | a5e165d3a9074c09b67df5a89aa26b153cf69562 [diff] |
audiopolicy: Use C++11 atomics, factor out handle generation Update the code to use C++11 atomics. Make sure that unsigned ints are used as id counters (signed ints have undefined overflow behavior). Factor out common code from AudioPatch and AudioPort. Test: compiles Change-Id: Ic359e97795a6282a2937d88bead8a1de27c8db7a