Platform Interface: java.lang.ThreadGroup

wrapper java.lang.ThreadGroup requiredif RSystemThreads {
    requires java.lang.RThreadGroupMap;
    state RThread rthreadgroup;
    
    wrapper ThreadGroup (String name) {
        java.lang.ThreadGroup tg;
        tg = Thread.currentThread ().getThreadGroup ();
        
        RThread tr;
        tr = RThreadGroupMap.lookupAdd (tg);
        RSystemThreads.createThread (tr, name);
        #;
        rthreadgroup = RThreadGroupMap.add (this);
    }
    
    wrapper ThreadGroup (ThreadGroup parent, String name) {
        RThread tr;
        tr = RThreadGroupMap.lookupAdd (parent);
        RSystemThreads.createThread (tr, name);
        #;
        rthreadgroup = RThreadGroupMap.add (this);
    }
    
    wrapper ThreadGroup getParent () {
        RSystemThreads.getGroupParent (rthreadgroup);
        #;
    }
    
    wrapper void setDaemon (boolean daemon) {
        if (daemon) {
            RSystemThreads.setDaemonThread (rthreadgroup);
        } else {
            RSystemThreads.setUserThread (rthreadgroup);
        }
        
        #;
    }
    
    wrapper void setMaxPriority (int pri) {
        RSystemThreads.setMaxPriority (rthreadgroup, pri);
        #;
    }
    
    passwrapper void stop ();
    passwrapper void suspend ();
    passwrapper void resume ();
    passwrapper void destroy ();
}

About this file

Naccio Home Page
David Evans
University of Virginia, Computer Science