Searched refs:Condition (Results 1 - 25 of 63) sorted by relevance

123

/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DCondition.java41 * {@code Condition} factors out the {@code Object} monitor
47 * and statements, a {@code Condition} replaces the use of the Object
60 * <p>A {@code Condition} instance is intrinsically bound to a lock.
61 * To obtain a {@code Condition} instance for a particular {@link Lock}
73 * {@link Condition} instances.
77 * final Condition notFull = <b>lock.newCondition(); </b>
78 * final Condition notEmpty = <b>lock.newCondition(); </b>
118 * <p>A {@code Condition} implementation can provide behavior and semantics
126 * <p>Note that {@code Condition} instances are just normal objects and can
130 * Acquiring the monitor lock of a {@code Condition} instanc
179 public interface Condition { interface
[all...]
H A DLock.java44 * {@link Condition} objects.
160 * @see Condition
337 * Returns a new {@link Condition} instance that is bound to this
342 * A call to {@link Condition#await()} will atomically release the lock
347 * <p>The exact operation of the {@link Condition} instance depends on
351 * @return A new {@link Condition} instance for this {@code Lock} instance
355 Condition newCondition();
H A DReentrantLock.java464 * Returns a {@link Condition} instance for use with this
467 * <p>The returned {@link Condition} instance supports the same
475 * <li>If this lock is not held when any of the {@link Condition}
476 * {@linkplain Condition#await() waiting} or {@linkplain
477 * Condition#signal signalling} methods are called, then an {@link
480 * <li>When the condition {@linkplain Condition#await() waiting}
500 * @return the Condition object
502 public Condition newCondition() {
700 public boolean hasWaiters(Condition condition) {
723 public int getWaitQueueLength(Condition conditio
[all...]
H A DReentrantReadWriteLock.java111 * <li><b>{@link Condition} support</b>
112 * <p>The write lock provides a {@link Condition} implementation that
114 * {@link Condition} implementation provided by
116 * This {@link Condition} can, of course, only be used with the write lock.
118 * <p>The read lock does not support a {@link Condition} and
892 public Condition newCondition() {
1135 * Returns a {@link Condition} instance for use with this
1137 * <p>The returned {@link Condition} instance supports the same
1146 * Condition} method is called then an {@link
1155 * <li>When the condition {@linkplain Condition#awai
[all...]
/openjdk7/hotspot/src/share/vm/runtime/
H A DbiasedLocking.hpp161 enum Condition { enum in class:BiasedLocking
177 static Condition revoke_and_rebias(Handle obj, bool attempt_rebias, TRAPS);
H A DbiasedLocking.cpp146 static BiasedLocking::Condition revoke_bias(oop obj, bool allow_rebias, bool is_bulk, JavaThread* requesting_thread) {
319 static BiasedLocking::Condition bulk_revoke_or_rebias_at_safepoint(oop o,
410 BiasedLocking::Condition status_code = BiasedLocking::BIAS_REVOKED;
445 BiasedLocking::Condition _status_code;
498 BiasedLocking::Condition status_code() const {
527 BiasedLocking::Condition BiasedLocking::revoke_and_rebias(Handle obj, bool attempt_rebias, TRAPS) {
610 BiasedLocking::Condition cond = revoke_bias(obj(), false, false, (JavaThread*) THREAD);
/openjdk7/hotspot/src/share/vm/interpreter/
H A DtemplateTable.hpp100 enum Condition { equal, not_equal, less, less_equal, greater, greater_equal }; enum in class:TemplateTable
254 static void if_0cmp (Condition cc);
255 static void if_icmp (Condition cc);
256 static void if_nullcmp(Condition cc);
257 static void if_acmp (Condition cc);
345 static void def(Bytecodes::Code code, int flags, TosState in, TosState out, void (*gen)(Condition cc), Condition cc);
/openjdk7/hotspot/src/cpu/sparc/vm/
H A Dinterp_masm_sparc.hpp137 void throw_if_not_1_icc( Condition ok_condition, Label& ok );
138 void throw_if_not_1_xcc( Condition ok_condition, Label& ok );
139 void throw_if_not_1_x ( Condition ok_condition, Label& ok ); // chooses icc or xcc based on _LP64
143 void throw_if_not_icc( Condition ok_condition, address throw_entry_point, Register Rscratch );
144 void throw_if_not_xcc( Condition ok_condition, address throw_entry_point, Register Rscratch );
145 void throw_if_not_x ( Condition ok_condition, address throw_entry_point, Register Rscratch );
173 void if_cmp(Condition cc, bool ptr_compare);
291 Condition cond, Label *where);
H A Dassembler_sparc.inline.hpp86 inline void Assembler::fb( Condition c, bool a, address d, relocInfo::relocType rt ) { v9_dep(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(fb_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
87 inline void Assembler::fb( Condition c, bool a, Label& L ) { fb(c, a, target(L)); }
89 inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt ) { v9_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(fbp_op2) | branchcc(cc) | predict(p) | wdisp(intptr_t(d), intptr_t(pc()), 19), rt); has_delay_slot(); }
90 inline void Assembler::fbp( Condition c, bool a, CC cc, Predict p, Label& L ) { fbp(c, a, cc, p, target(L)); }
92 inline void Assembler::cb( Condition c, bool a, address d, relocInfo::relocType rt ) { v8_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(cb_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
93 inline void Assembler::cb( Condition c, bool a, Label& L ) { cb(c, a, target(L)); }
95 inline void Assembler::br( Condition c, bool a, address d, relocInfo::relocType rt ) { v9_dep(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(br_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
96 inline void Assembler::br( Condition c, bool a, Label& L ) { br(c, a, target(L)); }
98 inline void Assembler::bp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt ) { v9_only(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(bp_op2) | branchcc(cc) | predict(p) | wdisp(intptr_t(d), intptr_t(pc()), 19), rt); has_delay_slot(); }
99 inline void Assembler::bp( Condition
[all...]
H A Dassembler_sparc.hpp766 enum Condition { enum in class:Assembler
1252 inline void cbcond(Condition c, CC cc, Register s1, Register s2, Label& L);
1253 inline void cbcond(Condition c, CC cc, Register s1, int simm5, Label& L);
1259 inline void fb( Condition c, bool a, address d, relocInfo::relocType rt = relocInfo::none );
1260 inline void fb( Condition c, bool a, Label& L );
1264 inline void fbp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt = relocInfo::none );
1265 inline void fbp( Condition c, bool a, CC cc, Predict p, Label& L );
1269 inline void br( Condition c, bool a, address d, relocInfo::relocType rt = relocInfo::none );
1270 inline void br( Condition c, bool a, Label& L );
1274 inline void bp( Condition
[all...]
/openjdk7/jdk/test/java/util/concurrent/SynchronousQueue/
H A DFairness.java39 final Condition ready = lock.newCondition();
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DSynchronizerLockingThread.java37 import java.util.concurrent.locks.Condition;
106 Condition waitingSync;
116 Condition waitingSync,
331 Condition c = lock8.newCondition();
332 Condition WAITING_LOCK = c;
H A DMyOwnSynchronizer.java124 // Provide a Condition
125 Condition newCondition() { return new ConditionObject(); }
141 public Condition newCondition() { return sync.newCondition(); }
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/
H A DFlakyMutex.java118 Condition newCondition() { return new ConditionObject(); }
131 public Condition newCondition() { return sync.newCondition(); }
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DCyclicBarrier.java150 /** Condition to wait on until tripped */
151 private final Condition trip = lock.newCondition();
H A DLinkedBlockingQueue.java39 import java.util.concurrent.locks.Condition;
156 private final Condition notEmpty = takeLock.newCondition();
162 private final Condition notFull = putLock.newCondition();
H A DLinkedBlockingDeque.java42 import java.util.concurrent.locks.Condition;
157 /** Condition for waiting takes */
158 private final Condition notEmpty = lock.newCondition();
160 /** Condition for waiting puts */
161 private final Condition notFull = lock.newCondition();
H A DArrayBlockingQueue.java105 /** Condition for waiting takes */
106 private final Condition notEmpty;
107 /** Condition for waiting puts */
108 private final Condition notFull;
/openjdk7/hotspot/src/share/vm/c1/
H A Dc1_GraphBuilder.hpp241 void if_node(Value x, If::Condition cond, Value y, ValueStack* stack_before);
242 void if_zero(ValueType* type, If::Condition cond);
243 void if_null(ValueType* type, If::Condition cond);
244 void if_same(ValueType* type, If::Condition cond);
H A Dc1_InstructionPrinter.hpp58 static const char* cond_name(If::Condition cond);
H A Dc1_Instruction.hpp353 enum Condition { enum in class:Instruction
367 static Condition mirror(Condition cond);
368 static Condition negate(Condition cond);
683 virtual CompareResult compare(Instruction::Condition condition, Value right) const;
684 BlockBegin* compare(Instruction::Condition cond, Value right,
1042 IfOp(Value x, Condition cond, Value y, Value tval, Value fval)
1054 Condition cond() const { return (Condition)Op
[all...]
H A Dc1_Instruction.cpp37 Instruction::Condition Instruction::mirror(Condition cond) {
51 Instruction::Condition Instruction::negate(Condition cond) {
463 Constant::CompareResult Constant::compare(Instruction::Condition cond, Value right) const {
/openjdk7/jdk/test/java/lang/management/ManagementFactory/
H A DThreadMXBeanProxy.java206 // Provide a Condition
207 Condition newCondition() { return new ConditionObject(); }
227 public Condition newCondition() { return sync.newCondition(); }
/openjdk7/hotspot/src/share/vm/opto/
H A Dconnode.cpp115 assert( !phase->eqv(in(Condition), this) &&
118 if( phase->type(in(Condition)) == Type::TOP )
119 return NULL; // return NULL when Condition is dead
122 if( in(Condition)->is_Bool() ) {
123 BoolNode* b = in(Condition)->as_Bool();
161 if( phase->type(in(Condition)) == TypeInt::ZERO )
163 if( phase->type(in(Condition)) == TypeInt::ONE )
172 if( in(Condition)->is_Bool() ) {
173 BoolNode *b = in(Condition)->as_Bool();
187 if( phase->type(in(Condition))
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/
H A DAppContext.java46 import java.util.concurrent.locks.Condition;
148 public final static Object EVENT_QUEUE_COND_KEY = new StringBuilder("EventQueue.Condition");
249 Condition eventQueuePushPopCond = eventQueuePushPopLock.newCondition();

Completed in 154 milliseconds

123