Package com.pcmsolutions.system.threads

Examples of com.pcmsolutions.system.threads.ZRemoteDumpThread


        initializeSpecifiedPresetData(indexes);
    }

    // assumes that all indexes are valid!
    private void initializeSpecifiedPresetData(final int[] indexes) {
        ZWaitThread t = new ZRemoteDumpThread() {
            public void run() {
                this.setName("PresetDataPass");
                Integer preset;
                for (int n = 0, o = indexes.length; n < o; n++) {
                    deviceLock.access();
                    try {
                        if (this.alive == false) {
                            return;
                        }
                        preset = IntPool.get(indexes[n]);
                        try {
                            if (!isPresetInitialized(preset))
                                refreshPreset(rootPresetContext, preset);
                        } catch (NoSuchPresetException e) {
                        } catch (NoSuchContextException e) {
                        }
                    } finally {
                        deviceLock.unlock();
                    }
                }
            }
        };
        workerThreads.add(t);
        t.start();
    }
View Full Code Here


            try {
                // synchronized (p2rt) {
                rt = (Thread) p2rt.get(preset);
                if (rt == null) {
                    //       p2rt.put(preset, rt);
                    rt = new ZRemoteDumpThread("refresh preset " + preset) {
                        public void run() {
                            try {
                                refreshPreset(pc, preset);
                            } catch (NoSuchContextException e) {
                            } catch (NoSuchPresetException e) {
View Full Code Here

            try {
                //synchronized (p2rt) {
                rt = (Thread) p2rt.get(preset);
                if (rt == null) {
                    //p2rt.put(preset, rt);
                    rt = new ZRemoteDumpThread("Refresh Preset") {
                        public void run() {
                            try {
                                refreshPreset(pc, preset);
                            } catch (NoSuchContextException e) {
                            } catch (NoSuchPresetException e) {
View Full Code Here

TOP

Related Classes of com.pcmsolutions.system.threads.ZRemoteDumpThread

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.