Explorar el Código

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

xiangxistu hace 3 años
padre
commit
78d8496db0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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