Damien George
e374cfff80
py/modthread: Raise RuntimeError in release() if lock is not acquired.
8 years ago
Ville Skyttä
ca16c38210
various: Spelling fixes
8 years ago
Damien George
06a12ada48
tests/thread: Add stress-test for creating many threads.
8 years ago
Damien George
2847d7431d
tests/thread: Replace busy waiting loops with a loop that sleeps.
Depending on the thread scheduler, a busy-wait loop can hog the CPU and
make the tests very slow. So convert such loops to loops that have an
explicit sleep, allowing the worker threads to do their job.
8 years ago
Damien George
28185bb81b
tests/thread: Fix stack size test so tests run reliably on baremetal.
8 years ago
Damien George
bebb3a6160
tests/thread: Make thread_exc2 runable on baremetal.
8 years ago
Rami Ali
f397e1fdf0
tests/thread: Improve modthread.c test coverage.
8 years ago
Damien George
8b9ddf4031
tests/thread: Allow some tests to run on ports with not much heap.
9 years ago
Damien George
63d05228a3
tests/thread: Allow thread_sleep1 to run without floating point.
9 years ago
Damien George
15e68277c1
tests/thread: Make sure that thread tests don't rely on floating point.
9 years ago
Damien George
5b7789d519
tests/thread: Make stack-size test run correctly and reliable on uPy.
9 years ago
Damien George
b7274e91bc
tests/thread: Add test for concurrent mutating of user instance.
9 years ago
Damien George
2e4cdae4fd
tests/thread: Add test for concurrent interning of strings.
Qstr code accesses global state and needs to be made thread safe.
9 years ago
Damien George
094a0dd11a
tests/thread: Add tests that mutate shared objects.
Tests concurrent mutating access to: list, dict, set, bytearray.
9 years ago
Damien George
c73cf9d931
tests/thread: Rename thread_stress_XXX.py to stress_XXX.py.
9 years ago
Damien George
dcc7c5bd89
tests/thread: Add tests for running GC within a thread, and heap stress.
9 years ago
Damien George
3545ef8bb4
tests/thread: Remove need to sleep to wait for completion in some tests.
Use a lock and a counter instead, and busy wait for all threads to
complete. This makes test run faster and they no longer rely on the time
module.
9 years ago
Damien George
2d5ea38b49
tests: Add 3 more tests for _thread module.
9 years ago
Damien George
ed36632c6c
tests: Add tests for _thread module.
Includes functionality and stress tests.
9 years ago