From 92216995054bc941ffc88a689db915569eebfcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 24 Feb 2024 09:32:50 -0500 Subject: [PATCH] Don't imply the callbacks need to be protected by the mutex. --- src/conio/bitmap_con.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index ebc281ab00..45d75006c8 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -1944,9 +1944,9 @@ int bitmap_drv_init(void (*drawrect_cb) (struct rectlist *data) pthread_mutex_unlock(&screenlock); pthread_mutex_unlock(&vstatlock); - pthread_mutex_lock(&callbacks.lock); callbacks.drawrect=drawrect_cb; callbacks.flush=flush_cb; + pthread_mutex_lock(&callbacks.lock); callbacks.rects = 0; pthread_mutex_unlock(&callbacks.lock); bitmap_initialized=1; -- GitLab