summaryrefslogtreecommitdiff
path: root/implementation/endpoints/src/endpoint_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/endpoints/src/endpoint_impl.cpp')
-rw-r--r--implementation/endpoints/src/endpoint_impl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/implementation/endpoints/src/endpoint_impl.cpp b/implementation/endpoints/src/endpoint_impl.cpp
index 1707502..1d16d05 100644
--- a/implementation/endpoints/src/endpoint_impl.cpp
+++ b/implementation/endpoints/src/endpoint_impl.cpp
@@ -134,6 +134,13 @@ uint32_t endpoint_impl<Protocol>::get_use_count() {
return use_count_;
}
+template<typename Protocol>
+void endpoint_impl<Protocol>::register_error_handler(error_handler_t _error_handler) {
+ std::lock_guard<std::mutex> its_lock(error_handler_mutex_);
+ this->error_handler_ = _error_handler;
+}
+
+
// Instantiate template
#ifndef _WIN32
template class endpoint_impl<boost::asio::local::stream_protocol>;