]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
use std::lock_guard whenever possible
authorRazvan Becheriu <razvan@isc.org>
Mon, 9 Sep 2019 09:33:50 +0000 (12:33 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 6 Nov 2019 17:32:51 +0000 (19:32 +0200)
src/lib/dhcpsrv/thread_pool.h
src/lib/util/lock_guard.h

index bcf98f8b9e42e4d84f60019227f67a4e7caeb71b..826a962ec3f42369afc1604090b18de903a6438b 100644 (file)
@@ -53,7 +53,6 @@ struct ThreadPoolQueue {
 
     bool get(WorkItem& item) {
         std::unique_lock<std::mutex> lock(mutex_);
-
         while (!exit_) {
             if (queue_.empty()) {
                 // Wait for add() or destroy().
index c656e035ca81f4e54aced7194f1ad396b0f76071..11e3699b778bd186c1c462841cd88384eea09363 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2019 Deutsche Telekom AG.
+//
+// Authors: Andrei Pavel <andrei.pavel@qualitance.com>
+//          Cristian Secareanu <cristian.secareanu@qualitance.com>
+//          Razvan Becheriu <razvan.becheriu@qualitance.com>
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//           http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
 #ifndef LOCK_GUARD_H
 #define LOCK_GUARD_H