Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 3 of 3) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/ccbench/
Dccbench.py196 def run_throughput_test(func, args, nthreads): argument
197 assert nthreads >= 1
206 if nthreads == 1:
230 for i in range(nthreads):
238 while len(ready) < nthreads:
243 start_cond.notify(nthreads)
254 nthreads = 1
256 while nthreads <= max_threads:
257 results = run_throughput_test(func, args, nthreads)
261 print("threads=%d: %d" % (nthreads, speed), end="")
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_sgi.h18 static int nthreads; /* protected by count_lock */ variable
158 nthreads++; in PyThread_start_new_thread()
182 nthreads--; in PyThread_exit_thread()
190 if (nthreads < 0) { in PyThread_exit_thread()
196 dprintf(("waiting for other threads (%d)\n", nthreads)); in PyThread_exit_thread()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_bz2.py302 nthreads = 10
307 threads = [threading.Thread(target=comp) for i in range(nthreads)]