Browse Source

[fix] pthread_mutex_destroy can't work. (#6212)

xiangxistu 2 years ago
parent
commit
78d8496db0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bsp/simulator/drivers/sdl_fb.c

+ 1 - 0
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