Skip to content

Commit 038cc2f

Browse files
committed
Updated text on TriggerQueue.
1 parent 4c5266e commit 038cc2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/manual.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,9 @@ public class TriggerQueue
632632
public synchronized void triggerFirst () throws NoSuchElementException;
633633
634634
public synchronized void triggerAll () throws NoSuchElementException;
635+
636+
protected synchronized void insert (SimulationEntity toAdd) throws SimulationException;
637+
protected synchronized SimulationEntity remove () throws NoSuchElementException;
635638
};
636639
----
637640

@@ -641,6 +644,8 @@ public class TriggerQueue
641644

642645
If the queue is not empty when it is garbage collected by the virtual machine then all remaining queue members will be triggered, and placed back onto the scheduler queue.
643646

647+
Typically TriggerQueues are used by the Semaphore implementation. However, they are available to be used by the application developer if you use the insert() and remove() methods directly in derived classes.
648+
644649
=== Semaphores
645650

646651
Application code can be protected from simulation processes through semaphores, which are instances of the Semaphore class.

0 commit comments

Comments
 (0)