Home
last modified time | relevance | path

Searched refs:NEW (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java64 private static final int NEW = 0; field in FutureTask
107 this.state = NEW; // ensure visibility of callable in FutureTask()
124 this.state = NEW; // ensure visibility of callable in FutureTask()
132 return state != NEW; in isDone()
136 if (!(state == NEW && in cancel()
137 UNSAFE.compareAndSwapInt(this, stateOffset, NEW, in cancel()
201 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { in set()
219 if (UNSAFE.compareAndSwapInt(this, stateOffset, NEW, COMPLETING)) { in setException()
227 if (state != NEW || in run()
233 if (c != null && state == NEW) { in run()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadStateTest.java23 Thread.State [] exStates = { Thread.State.NEW, Thread.State.RUNNABLE,
DOldThreadTest.java347 assertEquals(Thread.State.NEW, th.getState()); in test_getState()
/libcore/libart/src/main/java/java/lang/
DThread.java82 NEW, enumConstant