示例#1
0
 /**
  * Atomically set this reduction variable to the given updated value if the current value equals
  * the expected value. May fail spuriously.
  *
  * @param expect Expected value.
  * @param update Updated value.
  * @return True if the update happened, false otherwise.
  */
 public boolean weakCompareAndSet(boolean expect, boolean update) {
   return myValue.weakCompareAndSet(expect, update);
 }