1
0
mirror of https://github.com/Zygo/bees.git synced 2025-08-03 06:13:29 +02:00

lib: namedptr: thread-safe reference counted named object store

NamedPtr provides reference-counted handles to named objects.  The object
is created the first time the associated name is used, and stored under
the associated name until the last handle is destroyed.  NamedPtr may
itself be destroyed while handles are still active.

This template is intended to replace ResourceHandle with a more general
and less invasive implementation.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell
2020-10-18 19:20:00 -04:00
parent 8a2fb75462
commit d2ecb4c9ea
3 changed files with 281 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ PROGRAMS = \
crc64 \
fd \
limits \
namedptr \
path \
process \
progress \