nightduck / rmw_hazcat

Apache License 2.0
0 stars 0 forks source link

Add reference counting to allocator specification #17

Closed nightduck closed 2 years ago

nightduck commented 2 years ago

Allocators should allocate memory with an internal reference counter. A new API method, share, can be given an offset previously generated by an allocate function, to increment this reference counter. Any calls to deallocate will decrement the counter, and once it reaches 0, free memory.

nightduck commented 2 years ago

3f534a331ce69717364e6d17d8f6514d84f4e949