Pārlūkot izejas kodu

Force threads to finish on CloseWindow()

pull/192/head
raysan5 pirms 8 gadiem
vecāks
revīzija
1142d4edae
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/core.c

+ 3
- 0
src/core.c Parādīt failu

@ -463,6 +463,9 @@ void CloseWindow(void)
// Wait for mouse and gamepad threads to finish before closing
// NOTE: Those threads should already have finished at this point
// because they are controlled by windowShouldClose variable
windowShouldClose = true; // Added to force threads to exit when the close window is called
pthread_join(mouseThreadId, NULL);
pthread_join(gamepadThreadId, NULL);
#endif

Notiek ielāde…
Atcelt
Saglabāt