From: Quentin Rameau Subject: [PATCH 2/2] tog: fix usage of deprecated pthread_yield To: gameoftrees@openbsd.org Date: Sun, 19 Sep 2021 13:51:20 +0200 The pthread_yield isn't portable, let's use the POSIX equivalent instead. --- tog/tog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tog/tog.c b/tog/tog.c index 5af8f69f..791c2b51 100644 --- a/tog/tog.c +++ b/tog/tog.c @@ -848,7 +848,7 @@ view_input(struct tog_view **new, int *done, struct tog_view *view, if (errcode) return got_error_set_errno(errcode, "pthread_mutex_unlock"); - pthread_yield(); + sched_yield(); errcode = pthread_mutex_lock(&tog_mutex); if (errcode) return got_error_set_errno(errcode, -- 2.33.0