From 78d8496db04bd21f9d5b99a6c62d3fc1b0767b3f Mon Sep 17 00:00:00 2001 From: xiangxistu <52819708+xiangxistu@users.noreply.github.com> Date: Thu, 4 Aug 2022 00:29:16 +0800 Subject: [PATCH] [fix] pthread_mutex_destroy can't work. (#6212) --- bsp/simulator/drivers/sdl_fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index b465f24046..ca083ee4d4 100755 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/bsp/simulator/drivers/sdl_fb.c @@ -524,6 +524,7 @@ void rt_hw_sdl_start(void) pthread_mutex_lock(&sdl_ok_mutex); pthread_cond_wait(&sdl_ok_event, &sdl_ok_mutex); + pthread_mutex_unlock(&sdl_ok_mutex); pthread_mutex_destroy(&sdl_ok_mutex); pthread_cond_destroy(&sdl_ok_event); #endif