commit | 91f11c320ef4fe093270d39cd4852fed1abffd8e | [log] [tgz] |
---|---|---|
author | Sylvain Becker <sylvain.becker@gmail.com> | Mon Jan 14 23:33:48 2019 +0100 |
committer | Sylvain Becker <sylvain.becker@gmail.com> | Mon Jan 14 23:33:48 2019 +0100 |
tree | d5dc6a838667261b85284e0ec6ffc6f7de8f7593 | |
parent | b3f07fa5160916b67029b37524cfa71d44d2e0ca [diff] |
Android: create Pause/ResumeSem semaphore at higher level than CreateWindow() - If you call onPause() before CreateWindow(), SDLThread will run in infinite loop in background. - If you call onPause() between a DestroyWindow() and a new CreateWindow(), semaphores are invalids. SDLActivity.java: the first resume() starts the SDLThread, don't call nativeResume() as it would post ResumeSem. And the first pause would automatically be resumed.