Home | History | Annotate | Download | only in harmony

Lines Matching refs:Worker

100 //// WORKER ONLY TESTS
102 if (this.Worker) {
115 var worker = new Worker(workerScript);
116 worker.postMessage({sab: sab, offset: offset}, [sab]);
118 // Spin until the worker is waiting on the futex.
122 assertEquals(Atomics.OK, worker.getMessage());
123 worker.terminate();
125 var worker2 = new Worker(workerScript);
130 // Spin until the worker is waiting on the futex.
138 var worker3 = new Worker(workerScript);
142 // Spin until the worker is waiting on the futex.
161 // 0 => Worker |id| is still waiting on the futex
162 // 1 => Worker |id| is not waiting on futex, but has not be reaped by the
164 // 2 => Worker |id| has been reaped.
167 // always 0. Each worker is waiting on this index.
185 workers[id] = new Worker(workerScript);
229 // 0 => Worker |id| is still waiting on the futex
230 // 1 => Worker |id| is not waiting on futex, but has not be reaped by the
232 // 2 => Worker |id| has been reaped.
235 // always 0. Each worker will initially wait on this index.
252 workers[id] = new Worker(workerScript);
277 // The woken worker may not have been scheduled yet. Look for which thread