Back to project page droidkit-engines.
The source code is released under:
MIT License
If you think the Android project droidkit-engines listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.droidkit.engine; /*from w w w . j a va 2s . c o m*/ import com.droidkit.actors.ActorSystem; import com.droidkit.actors.android.UiActorDispatcher; import com.droidkit.actors.mailbox.ActorDispatcher; /** * Engine library initialization. */ public class Engines { private static volatile boolean isInited = false; private static Object initLock = new Object(); /** * Pefrorm initialization\ */ public static void init() { if (!isInited) { synchronized (initLock) { if (!isInited) { isInited = true; ActorSystem.system().addDispatcher("db", new ActorDispatcher(ActorSystem.system(), 1, Thread.MIN_PRIORITY)); ActorSystem.system().addDispatcher("ui", new UiActorDispatcher(ActorSystem.system())); } } } } }