Commit d54a54aa authored by Francis Dupont's avatar Francis Dupont

[970-implement-multi-threading-critical-section] Moved to Camel names

parent 6fe1cd7f
...@@ -16,29 +16,29 @@ namespace isc { ...@@ -16,29 +16,29 @@ namespace isc {
namespace dhcp { namespace dhcp {
void void
MultiThreadingCriticalSection::stop_pkt_processing() { MultiThreadingCriticalSection::stopPktProcessing() {
isc_throw(NotImplemented, isc_throw(NotImplemented,
"MultiThreadingCriticalSection::stop_pkt_processing " "MultiThreadingCriticalSection::stopPktProcessing "
"is not yet implemented"); "is not yet implemented");
} }
void void
MultiThreadingCriticalSection::start_pkt_processing() { MultiThreadingCriticalSection::startPktProcessing() {
isc_throw(NotImplemented, isc_throw(NotImplemented,
"MultiThreadingCriticalSection::start_pkt_processing " "MultiThreadingCriticalSection::startPktProcessing "
"is not yet implemented"); "is not yet implemented");
} }
MultiThreadingCriticalSection::MultiThreadingCriticalSection() MultiThreadingCriticalSection::MultiThreadingCriticalSection()
: enabled_(MultiThreadingMgr::instance().getMode()) { : enabled_(MultiThreadingMgr::instance().getMode()) {
if (enabled_) { if (enabled_) {
stop_pkt_processing(); stopPktProcessing();
} }
} }
MultiThreadingCriticalSection::~MultiThreadingCriticalSection() { MultiThreadingCriticalSection::~MultiThreadingCriticalSection() {
if (enabled_) { if (enabled_) {
start_pkt_processing(); startPktProcessing();
} }
} }
......
...@@ -17,11 +17,11 @@ namespace dhcp { ...@@ -17,11 +17,11 @@ namespace dhcp {
/// @brief Function stopping and joining all threads of the pool. /// @brief Function stopping and joining all threads of the pool.
/// @throw isc::NotImplemented until is implemented. /// @throw isc::NotImplemented until is implemented.
void stop_pkt_processing(); void stopPktProcessing();
/// @brief Function (re)starting threads of the pool. /// @brief Function (re)starting threads of the pool.
/// @throw isc::NotImplemented until is implemented. /// @throw isc::NotImplemented until is implemented.
void start_pkt_processing(); void startPktProcessing();
/// @brief RAII class creating a critical section. /// @brief RAII class creating a critical section.
class MultiThreadingCriticalSection : public boost::noncopyable { class MultiThreadingCriticalSection : public boost::noncopyable {
...@@ -36,11 +36,11 @@ public: ...@@ -36,11 +36,11 @@ public:
/// @brief Class method stopping and joining all threads of the pool. /// @brief Class method stopping and joining all threads of the pool.
/// @throw isc::NotImplemented until is implemented. /// @throw isc::NotImplemented until is implemented.
static void stop_pkt_processing(); static void stopPktProcessing();
/// @brief Class method (re)starting threads of the pool. /// @brief Class method (re)starting threads of the pool.
/// @throw isc::NotImplemented until is implemented. /// @throw isc::NotImplemented until is implemented.
static void start_pkt_processing(); static void startPktProcessing();
private: private:
/// @brief Local copy of the multi-threading mode. /// @brief Local copy of the multi-threading mode.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment