From 755dcb223e9ca2aecd2555a417247d8f55fdaf33 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 28 Nov 2024 20:54:20 -0500 Subject: fixes #1408 Reference count as a first class type This starts by using this for the nni_pipe, but we will use it for the other primary objects as well. This should simplify the tear down and hopefully eliminate some races. It does mean that pipe destruction goes through an additional context switch, for now at least. This shouldn't be on the hot data path anyway. --- src/core/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/CMakeLists.txt') diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b8aa1e63..81f8d1ee 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -57,6 +57,8 @@ nng_sources( protocol.h reap.c reap.h + refcnt.c + refcnt.h sockaddr.c socket.c socket.h -- cgit v1.2.3-70-g09d2