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();
}
}
/// @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 {
/// @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.