]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#883, !506] fixed comments
authorRazvan Becheriu <razvan@isc.org>
Wed, 11 Sep 2019 12:23:10 +0000 (15:23 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 8 Nov 2019 13:52:29 +0000 (15:52 +0200)
src/lib/dhcpsrv/thread_pool.cc
src/lib/util/threads/tests/lock_guard_unittest.cc

index f3d27f28bdf3f3d2da1dd718aa607f0029d24f30..b7da07f2acc451c3621e51e53178c38570297163 100644 (file)
@@ -56,7 +56,7 @@ struct ThreadPoolQueue {
     /// This function adds an item to the queue and wakes up at least one thread
     /// waiting on the queue.
     ///
-    /// @param item the new iten to be added to the queue
+    /// @param item the new item to be added to the queue
     void push(WorkItem item) {
         std::lock_guard<std::mutex> lock(mutex_);
         queue_.push(item);
@@ -153,7 +153,6 @@ private:
     std::condition_variable cv_;
 
     /// @brief the sate of the queue
-    ///
     /// The 'enabled' state corresponds to false value
     /// The 'disabled' state corresponds to true value
     std::atomic_bool exit_;
index 594d778fbd6f5aaf535cbe3cb9f928282ec54acb..10587bda83179b9a4de7d4a60d7fb9886eb7e897 100644 (file)
@@ -47,7 +47,8 @@ public:
                 // lock on a non-recursive mutex resulting in a dead lock
                 dead_lock_ = true;
                 isc_throw(isc::InvalidOperation,
-                          "lock on already locked mutex resulting in deadlock");
+                          "recursive lock on already locked mutex resulting in "
+                          "dead lock");
             } else {
                 // lock on a recursive mutex
                 if (this_thread::get_id() != id_) {
@@ -56,7 +57,7 @@ public:
                     dead_lock_ = true;
                     isc_throw(isc::InvalidOperation,
                               "recursive lock on a different thread on already "
-                              "locked mutex resulting in deadlock");
+                              "locked mutex resulting in dead lock");
                 }
             }
         }
@@ -141,7 +142,7 @@ private:
     /// @brief internal lock state of the mutex
     int32_t lock_;
 
-    /// @brief state which indicated that the mutex in in dead lock
+    /// @brief state which indicates that the mutex is in dead lock
     bool dead_lock_;
 
     /// @brief total number of locks performed on the mutex