diff --git a/src/kernel_win/Communicator.cc b/src/kernel_win/Communicator.cc index 547107b5..d7f8ecc6 100644 --- a/src/kernel_win/Communicator.cc +++ b/src/kernel_win/Communicator.cc @@ -273,17 +273,6 @@ int CommService::drain(int max) return cnt; } -inline void CommService::incref() -{ - this->ref++; -} - -inline void CommService::decref() -{ - if (--this->ref == 0) - this->handle_unbound(); -} - class CommServiceTarget : public CommTarget { public: diff --git a/src/kernel_win/Communicator.h b/src/kernel_win/Communicator.h index 80619792..e00c6c7e 100644 --- a/src/kernel_win/Communicator.h +++ b/src/kernel_win/Communicator.h @@ -212,9 +212,17 @@ private: int ssl_accept_timeout; SSL_CTX *ssl_ctx; -private: - void incref(); - void decref(); +public: + void incref() + { + this->ref++; + } + + void decref() + { + if (--this->ref == 0) + this->handle_unbound(); + } private: SOCKET listen_sockfd;