Skip to content

Commit 19e1da1

Browse files
Remove unused code and bump version patch
1 parent e10b3b3 commit 19e1da1

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
55
# Note: update this to your new project's name and version
66
project(
77
ThreadPool
8-
VERSION 0.4.0
8+
VERSION 0.4.1
99
LANGUAGES CXX
1010
)
1111

include/thread_pool/thread_pool.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <future>
66
#include <memory>
77
#include <queue>
8-
#include <semaphore>
98
#include <thread>
109
#include <type_traits>
1110

include/thread_pool/thread_safe_queue.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ namespace dp {
3131
return data_.size();
3232
}
3333

34-
// [[nodiscard]] T& front() {
35-
// std::unique_lock lock(mutex_);
36-
// condition_variable_.wait(lock, [this] { return !data_.empty(); });
37-
// return data_.front();
38-
// }
39-
//
40-
// [[nodiscard]] T& back() {
41-
// std::unique_lock lock(mutex_);
42-
// condition_variable_.wait(lock, [this] { return !data_.empty(); });
43-
// return data_.back();
44-
// }
45-
4634
[[nodiscard]] T pop() {
4735
std::unique_lock lock(mutex_);
4836
condition_variable_.wait(lock, [this] { return !data_.empty(); });

0 commit comments

Comments
 (0)