Class CSyncedStack
java.lang.Object
|
+----java.util.Vector
|
+----java.util.Stack
|
+----CSyncedStack
- public class CSyncedStack
- extends Stack
-
block()
- Block this stack.
-
pop()
- Remove the object at the top of this stack and
return it as the value of this function.
-
push(Object)
- Put an object at the top of this stack.
-
unblock()
- Unblock this stack and release all pending calls to
Pop() and Push().
pop
public synchronized Object pop()
- Remove the object at the top of this stack and
return it as the value of this function. If the
stack is blocked Pop() is delayed until it is unblocked.
- Overrides:
- pop in class Stack
push
public synchronized Object push(Object o)
- Put an object at the top of this stack. If the
stack is blocked Push() is delayed until it is unblocked.
- Overrides:
- push in class Stack
block
public synchronized void block()
- Block this stack. All calls to Push() and Pop() will be
delayed until this stack is unblocked again.
unblock
public synchronized void unblock()
- Unblock this stack and release all pending calls to
Pop() and Push().