diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/threadstest.c | 2 | ||||
-rw-r--r-- | test/threadstest.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/threadstest.c b/test/threadstest.c index 74bac08be4..c208c37d0a 100644 --- a/test/threadstest.c +++ b/test/threadstest.c @@ -420,7 +420,7 @@ static int _torture_rcu(void) writer2_done = 0; rcu_torture_result = 1; - rcu_lock = ossl_rcu_lock_new(1); + rcu_lock = ossl_rcu_lock_new(1, NULL); TEST_info("Staring rcu torture"); t1 = ossl_time_now(); diff --git a/test/threadstest.h b/test/threadstest.h index 8bdedd7052..3125cec378 100644 --- a/test/threadstest.h +++ b/test/threadstest.h @@ -65,6 +65,7 @@ static void *thread_run(void *arg) *(void **) (&f) = arg; f(); + OPENSSL_thread_stop(); return NULL; } |