Skip to content

Commit 78d8496

Browse files
authored
[fix] pthread_mutex_destroy can't work. (#6212)
1 parent 760432b commit 78d8496

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bsp/simulator/drivers/sdl_fb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ void rt_hw_sdl_start(void)
524524
pthread_mutex_lock(&sdl_ok_mutex);
525525
pthread_cond_wait(&sdl_ok_event, &sdl_ok_mutex);
526526

527+
pthread_mutex_unlock(&sdl_ok_mutex);
527528
pthread_mutex_destroy(&sdl_ok_mutex);
528529
pthread_cond_destroy(&sdl_ok_event);
529530
#endif

0 commit comments

Comments
 (0)