-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/xtimer_mutex_lock_timeout/ new test with thread (lower prio tha…
…n main thread) locking and unlocking mutex cmd_test_xtimer_mutex_lock_timeout_low_prio_thread and thread_low_prio_test is added This testfunction will test xtimer_mutex_lock_timeout with two threads (main and lower prio than main thread). The main thread creates another thread and sleeps. While the main thread sleeps the other thread takes the mutex and wakes the main thread up. Then calls xtimer_mutex_lock_timeout then the second thread unlockes the mutex and the main thread gets it and waits for the created thread to end. Has test messages showing the thread count. To make sure the created thread ends. (test messages may be removed in the future)
- Loading branch information
1 parent
7198dff
commit 17c6311
Showing
2 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters