OSDN Git Service

Let unchecked exceptions thrown in a Runnable kill the app do not just
authorPat <pat@bitiotic.com>
Sat, 26 Jan 2013 00:28:44 +0000 (16:28 -0800)
committerPat <pat@bitiotic.com>
Sat, 26 Jan 2013 00:28:44 +0000 (16:28 -0800)
commitf1505b496016bdee2978017b2ccce0125be4d0ea
tree63a3ffb31e53f4decb196c971d5eff8a4951e1e3
parent3bec8fefb15bf4dfd5c79af569311e50b7e11f93
Let unchecked exceptions thrown in a Runnable kill the app do not just
eat them.

Do not hold the lock on runnables across invocation of the callbacks.
Its fine to add more runnables while the executed runnables list is
being run through.

Add a test case too.
backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglApplication.java
tests/gdx-tests/src/com/badlogic/gdx/tests/RunnablePostTest.java [new file with mode: 0644]
tests/gdx-tests/src/com/badlogic/gdx/tests/utils/GdxTests.java