Package org.jnode.vm.objects

Examples of org.jnode.vm.objects.Counter


        log.debug(flags.getName() + " : Init disable");
        // reset
        regs.setReg32(SCBPort, 0);
        // disable
        regs.setReg32(SCBPort, 2);
        Counter count = new Counter("chrono");
        while ((Integer) count.getValue() <= 20)
            count.inc();
        regs.setReg16(SCBCmd, SCBMaskAll);
        int intr_status = regs.getReg16(SCBStatus);
        regs.setReg16(SCBStatus, intr_status);
        regs.getReg16(SCBStatus);
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public final Counter getCounter(String name) {
        Counter cnt = (Counter) getStatistic(name);
        if (cnt == null) {
            synchronized (this) {
                cnt = (Counter) getStatistic(name);
                if (cnt == null) {
                    cnt = new Counter(name, name);
                    addStatistic(name, cnt);
                }
            }
        }
        return cnt;
View Full Code Here

TOP

Related Classes of org.jnode.vm.objects.Counter

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.