Examples of informOnExit()


Examples of kilim.Task.informOnExit()

public class TestInterface extends TestCase {
    public void testIntCall() throws Exception {
        Task task = new kilim.test.ex.ExInterfaceImpl();
        Mailbox<ExitMsg> exitmb = new Mailbox<ExitMsg>();
        Scheduler s = new Scheduler(1);
        task.informOnExit(exitmb);
        task.setScheduler(s);
        task.start();
       
        ExitMsg m = exitmb.getb();
        if (m == null) {
View Full Code Here

Examples of kilim.Task.informOnExit()

public class TestInterface extends TestCase {
    public void testIntCall() throws Exception {
        Task task = new kilim.test.ex.ExInterfaceImpl();
        Mailbox<ExitMsg> exitmb = new Mailbox<ExitMsg>();
        Scheduler s = new Scheduler(1);
        task.informOnExit(exitmb);
        task.setScheduler(s);
        task.start();
       
        ExitMsg m = exitmb.getb();
        if (m == null) {
View Full Code Here

Examples of kilim.Task.informOnExit()

    public void testLocks() {
        Scheduler scheduler = new Scheduler(4);
        Mailbox<ExitMsg> mb = new Mailbox<ExitMsg>();
        for (int i = 0; i < 100; i++) {
            Task t = new LockTask();
            t.informOnExit(mb);
            t.setScheduler(scheduler);
            t.start();
        }
        boolean ok = true;
        for (int i = 0; i < 100; i++) {
View Full Code Here

Examples of kilim.Task.informOnExit()

    static Mailbox<String> mb = new Mailbox<String>();
    static Mailbox<ExitMsg> exitmb = new Mailbox<ExitMsg>();
   
    public static void main(String[] args) throws Exception {
        Task t = new SimpleTask2().start();
        t.informOnExit(exitmb);
        mb.putnb("Hello ");
        mb.putnb("World\n");
        mb.putnb("done");
       
        exitmb.getb();
View Full Code Here

Examples of kilim.test.ex.ExInterfaceGenericTask.informOnExit()

    }
    public void testGenericInterface() throws Exception {
        ExInterfaceGenericTask task = new ExInterfaceGenericTask(new ExInterfaceGenericImpl());
        Mailbox<ExitMsg> exitmb = new Mailbox<ExitMsg>();
        Scheduler s = new Scheduler(1);
        task.informOnExit(exitmb);
        task.setScheduler(s);
        task.start();
       
        ExitMsg m = exitmb.getb();
        if (m == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.