Skip to content

Commit b345351

Browse files
final check
1 parent b338c72 commit b345351

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.11)
66

77
project(
88
cpp-pthread
9-
VERSION 1.8.2
9+
VERSION 1.8.0
1010
DESCRIPTION "Simple C++ wrapper to pthread functions (${GIT_LOG})")
1111

1212
option(BUILD_TESTS "enable/disable tests (default is enabled)" ON)

tests/synchronized_queue_tests.cpp

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ TEST(synchronized_queue, producer_consumer) {
204204
auto pstatus = EXIT_FAILURE;
205205

206206
try {
207-
207+
std::cout << "Version: " << pthread::cpp_pthread_version() << std::endl;
208208
// sync_message_queue queue(QUEUE_MAX_SIZE);
209209
queue = new sync_message_queue(QUEUE_MAX_SIZE);
210210

@@ -223,22 +223,6 @@ TEST(synchronized_queue, producer_consumer) {
223223
}
224224

225225
group.start();
226-
227-
// std::string entry;
228-
// do{
229-
// std::getline(std::cin, entry);
230-
//
231-
// if (queue->max_size() == 0){
232-
// fprintf (stderr, "%s: restarting producer/consumer (size: %ld)\n", __FUNCTION__, QUEUE_MAX_SIZE);
233-
// queue->set_max_size(QUEUE_MAX_SIZE);
234-
// fprintf (stderr, "%s: done (size: %ld)\n", __FUNCTION__, queue->max_size());
235-
// } else {
236-
// fprintf (stderr, "%s: stopping producer/consumer (size: %ld)\n", __FUNCTION__, 0);
237-
// queue->set_max_size(0);
238-
// fprintf (stderr, "%s: done (size: %ld)\n", __FUNCTION__, queue->max_size());
239-
// }
240-
// } while ( entry != "quit" );
241-
242226
group.join();
243227

244228
auto consumed_messages = consumer::counter();

0 commit comments

Comments
 (0)