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/nng_impl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/nng_impl.h') diff --git a/src/core/nng_impl.h b/src/core/nng_impl.h index 0eceaf0b..b45a3712 100644 --- a/src/core/nng_impl.h +++ b/src/core/nng_impl.h @@ -40,6 +40,7 @@ #include "core/pollable.h" #include "core/protocol.h" #include "core/reap.h" +#include "core/refcnt.h" #include "core/stats.h" #include "core/stream.h" #include "core/strs.h" -- cgit v1.2.3-70-g09d2