commit | 10ba1dec2a0bd8af617bca9e57a174f935fc5e08 | [log] [tgz] |
---|---|---|
author | Tobin Ehlis <tobine@google.com> | Wed Apr 13 12:59:43 2016 -0600 |
committer | Tobin Ehlis <tobine@google.com> | Thu Apr 14 16:43:21 2016 -0600 |
tree | 664a2bf321b3abd93ee99300a00d82cbf15a0ee2 | |
parent | 4a5a9a00b4551e19a1282e27201e26cbc8350c37 [diff] |
layers: Overhaul unique_objects Unique objects now uses a 64-bit counter as the unique handle returned to the app. It stores an internal mapping of handles to actual object ptrs that are used for all non-dispatchable objects. This virtually eliminates the possibility of having a repeat handle as objects are created and destroyed. All counter increments and map accesses are protected by a mutex.