File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed
Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff 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
66project (
77 ThreadPool
8- VERSION 0.4.0
8+ VERSION 0.4.1
99 LANGUAGES CXX
1010)
1111
Original file line number Diff line number Diff line change 55#include < future>
66#include < memory>
77#include < queue>
8- #include < semaphore>
98#include < thread>
109#include < type_traits>
1110
Original file line number Diff line number Diff 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 (); });
You can’t perform that action at this time.
0 commit comments