Skip to content
Snippets Groups Projects
Commit 925ad609 authored by Guy Zana's avatar Guy Zana
Browse files

Start tst-bsd-rwlock threads

parent 66f678a8
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,7 @@ public:
// Test 1
_test1_finished = false;
thread* t1 = new thread([&] { rwlock_test1(); });
t1->start();
_main->wait_until([&] { return (_test1_finished); });
delete t1;
......@@ -109,6 +110,8 @@ public:
rw_init(&_test2_rwlock, "tst2");
thread* t2_1 = new thread([&] { rwlock_test2_t1(); });
thread* t2_2 = new thread([&] { rwlock_test2_t2(); });
t2_1->start();
t2_2->start();
_main->wait_until([&] { return (_test2_t1_finished && _test2_t2_finished); });
delete t2_1;
delete t2_2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment