]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[970-implement-multi-threading-critical-section] Moved to Camel names
authorFrancis Dupont <fdupont@isc.org>
Tue, 5 Nov 2019 11:52:19 +0000 (12:52 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 5 Nov 2019 14:28:59 +0000 (15:28 +0100)
src/lib/dhcpsrv/multi_threading_utils.cc
src/lib/dhcpsrv/multi_threading_utils.h

index edc7c43a9fa255df071eacd21d7c881a115e9356..99d182dad796f64dfdca373f58fd131357ae246c 100644 (file)
@@ -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();
     }
 }
 
index 0c5e66b9759b727a83bc6db65b34ba7ff12a2341..87c6b55f2feeab455bc10106c03baeee10405107 100644 (file)
@@ -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.