xlet

Possible concurrency issue in Xlet development

主宰稳场 提交于 2019-12-23 02:17:31
问题 I am involved in development of Xlet using Java 1.4 API. The docs say Xlet interface methods (those are actually xlet life-cycle methods) are called on its special thread (not the EDT thread). I checked by logging - this is true. This is a bit surprising for me, because it is different from BB/Android frameworks where life-cycle methods are called on the EDT, but it's OK so far. In the project code I see the app extensively uses Display.getInstance().callSerially(Runnable task) calls (this is

Possible concurrency issue in Xlet development

夙愿已清 提交于 2019-12-06 15:08:49
I am involved in development of Xlet using Java 1.4 API. The docs say Xlet interface methods (those are actually xlet life-cycle methods) are called on its special thread (not the EDT thread). I checked by logging - this is true. This is a bit surprising for me, because it is different from BB/Android frameworks where life-cycle methods are called on the EDT, but it's OK so far. In the project code I see the app extensively uses Display.getInstance().callSerially(Runnable task) calls (this is an LWUIT way of running a Runnable on the EDT thread). So basically some pieces of code inside of the