diff options
| author | raysan5 <[email protected]> | 2016-10-24 19:08:23 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-10-24 19:08:23 +0200 |
| commit | 1142d4edae645f9e5b235c2c3278a8d16a1f97cf (patch) | |
| tree | 887960a811cc6648799ec1cccc1c3ee6ae90de65 /src/core.c | |
| parent | b8ce6805117bcd28f80ae92f7faa14abdcb2f741 (diff) | |
| download | raylib-1142d4edae645f9e5b235c2c3278a8d16a1f97cf.tar.gz raylib-1142d4edae645f9e5b235c2c3278a8d16a1f97cf.zip | |
Force threads to finish on CloseWindow()
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
