Examples of notifyAll()


Examples of ptolemy.actor.Director.notifyAll()

                    // If there is no director, then the model cannot be running,
                    // so there is no need to notify.
                    if (director != null) {
                        synchronized (director) {
                            director.notifyAll();
                        }
                    }
                } else {
                    try {
                        Actor localActor = new ChannelActor(i, this);
View Full Code Here

Examples of ptolemy.actor.Manager.notifyAll()

        // NOTE: Used to do the notification in a new thread.
        // For some reason, however, this isn't sufficient.
        // Have to click the stop button twice.
        // (new NotifyThread(manager)).start();
        synchronized (manager) {
            manager.notifyAll();
        }

        // Wait until all threads stop.
        synchronized (this) {
            while (_activeThreads.size() > 0) {
View Full Code Here

Examples of ptolemy.actor.Receiver.notifyAll()

            branch.setActive(false);

            Receiver receiver = branch.getConsumerReceiver();

            synchronized (receiver) {
                receiver.notifyAll();
            }

            receiver = branch.getProducerReceiver();

            synchronized (receiver) {
View Full Code Here

Examples of ptolemy.domains.rendezvous.kernel.RendezvousDirector.notifyAll()

                                if (_debugging) {
                                    _debug("** Received input. Buffer contents: "
                                            + _buffer);
                                }
                                director.threadUnblocked(writeThread, null);
                                director.notifyAll();
                            }
                        }
                    } catch (TerminateProcessException ex) {
                        // OK, just exit.
                        _postfireReturns = false;
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.