From e4b2e795aa5ab1a1c23d54d77813e2f5e1916ae2 Mon Sep 17 00:00:00 2001 From: Alexander Garustovich Date: Wed, 22 May 2024 21:33:39 +0300 Subject: [PATCH] Minor corrections --- src/task-1/main.cpp | 2 -- src/task-7/main.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/task-1/main.cpp b/src/task-1/main.cpp index b4065e9..defde59 100644 --- a/src/task-1/main.cpp +++ b/src/task-1/main.cpp @@ -22,8 +22,6 @@ void waiting_thread_func() { std::cout << "another: got the signal!" << std::endl; } -void _thread_func() {} - int main() { std::thread t{waiting_thread_func}; diff --git a/src/task-7/main.cpp b/src/task-7/main.cpp index fb26fbd..31b07d3 100644 --- a/src/task-7/main.cpp +++ b/src/task-7/main.cpp @@ -118,7 +118,7 @@ void test_two_writers_block_each_other() { PASS(); } -void test_high_contention() { +void test_many_threads() { constexpr auto NumThreads = 8; RWLock l; @@ -157,7 +157,7 @@ int main() { test_writer_blocks_reader(); test_reader_blocks_writer(); test_two_writers_block_each_other(); - test_high_contention(); + test_many_threads(); } catch (const std::exception& e) { std::cerr << e.what() << std::endl;