mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 01:57:05 +08:00
[fix] pthread_mutex_destroy can't work. (#6212)
This commit is contained in:
parent
760432b6a3
commit
78d8496db0
@ -524,6 +524,7 @@ void rt_hw_sdl_start(void)
|
|||||||
pthread_mutex_lock(&sdl_ok_mutex);
|
pthread_mutex_lock(&sdl_ok_mutex);
|
||||||
pthread_cond_wait(&sdl_ok_event, &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_mutex_destroy(&sdl_ok_mutex);
|
||||||
pthread_cond_destroy(&sdl_ok_event);
|
pthread_cond_destroy(&sdl_ok_event);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user