commit | 2fb0dba25a2ef615bc82cb43af333acacd99b82f | [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 | aa2d061ed986ff00c54437245a2da5ce3b2162c9 | |
parent | b08d4871b593e363061de0467c7a009c1e8134e2 [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.