From d54a54aa3377a2b4c240acbeb95063e5fe047742 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Tue, 5 Nov 2019 12:52:19 +0100 Subject: [PATCH] [970-implement-multi-threading-critical-section] Moved to Camel names --- src/lib/dhcpsrv/multi_threading_utils.cc | 12 ++++++------ src/lib/dhcpsrv/multi_threading_utils.h | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/dhcpsrv/multi_threading_utils.cc b/src/lib/dhcpsrv/multi_threading_utils.cc index edc7c43a9f..99d182dad7 100644 --- a/src/lib/dhcpsrv/multi_threading_utils.cc +++ b/src/lib/dhcpsrv/multi_threading_utils.cc @@ -16,29 +16,29 @@ namespace isc { namespace dhcp { void -MultiThreadingCriticalSection::stop_pkt_processing() { +MultiThreadingCriticalSection::stopPktProcessing() { isc_throw(NotImplemented, - "MultiThreadingCriticalSection::stop_pkt_processing " + "MultiThreadingCriticalSection::stopPktProcessing " "is not yet implemented"); } void -MultiThreadingCriticalSection::start_pkt_processing() { +MultiThreadingCriticalSection::startPktProcessing() { isc_throw(NotImplemented, - "MultiThreadingCriticalSection::start_pkt_processing " + "MultiThreadingCriticalSection::startPktProcessing " "is not yet implemented"); } MultiThreadingCriticalSection::MultiThreadingCriticalSection() : enabled_(MultiThreadingMgr::instance().getMode()) { if (enabled_) { - stop_pkt_processing(); + stopPktProcessing(); } } MultiThreadingCriticalSection::~MultiThreadingCriticalSection() { if (enabled_) { - start_pkt_processing(); + startPktProcessing(); } } diff --git a/src/lib/dhcpsrv/multi_threading_utils.h b/src/lib/dhcpsrv/multi_threading_utils.h index 0c5e66b975..87c6b55f2f 100644 --- a/src/lib/dhcpsrv/multi_threading_utils.h +++ b/src/lib/dhcpsrv/multi_threading_utils.h @@ -17,11 +17,11 @@ namespace dhcp { /// @brief Function stopping and joining all threads of the pool. /// @throw isc::NotImplemented until is implemented. -void stop_pkt_processing(); +void stopPktProcessing(); /// @brief Function (re)starting threads of the pool. /// @throw isc::NotImplemented until is implemented. -void start_pkt_processing(); +void startPktProcessing(); /// @brief RAII class creating a critical section. class MultiThreadingCriticalSection : public boost::noncopyable { @@ -36,11 +36,11 @@ public: /// @brief Class method stopping and joining all threads of the pool. /// @throw isc::NotImplemented until is implemented. - static void stop_pkt_processing(); + static void stopPktProcessing(); /// @brief Class method (re)starting threads of the pool. /// @throw isc::NotImplemented until is implemented. - static void start_pkt_processing(); + static void startPktProcessing(); private: /// @brief Local copy of the multi-threading mode. -- 2.47.2