From: Francis Dupont Date: Tue, 5 Nov 2019 11:52:19 +0000 (+0100) Subject: [970-implement-multi-threading-critical-section] Moved to Camel names X-Git-Tag: Kea-1.7.2~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d54a54aa3377a2b4c240acbeb95063e5fe047742;p=thirdparty%2Fkea.git [970-implement-multi-threading-critical-section] Moved to Camel names --- 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.