Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukigaru committed May 22, 2024
1 parent a4ae2bc commit e4b2e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/task-1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
4 changes: 2 additions & 2 deletions src/task-7/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e4b2e79

Please sign in to comment.