source:
longrun_tests/create.cfa
@
3e1cd17
Last change on this file since 3e1cd17 was e8fe5e0, checked in by , 5 years ago | |
---|---|
|
|
File size: 449 bytes |
Rev | Line | |
---|---|---|
[73abe95] | 1 | #include <kernel.hfa> |
2 | #include <thread.hfa> | |
3 | #include <time.hfa> | |
[cd99ef1] | 4 | |
[dc8511c] | 5 | #include "long_tests.hfa" |
[7bdcac1] | 6 | |
[cc3e4d0] | 7 | #ifndef PREEMPTION_RATE |
[b9da9585] | 8 | #error PREEMPTION_RATE not defined in makefile |
[cc3e4d0] | 9 | #endif |
10 | ||
[8ad6533] | 11 | Duration default_preemption() { |
[cc3e4d0] | 12 | return PREEMPTION_RATE; |
13 | } | |
14 | ||
[b9da9585] | 15 | static const unsigned long N = 60_000ul; |
16 | ||
[0322865c] | 17 | thread worker_t {}; |
[cc3e4d0] | 18 | |
[1449d83] | 19 | void main(worker_t & this) {} |
[cc3e4d0] | 20 | |
21 | int main(int argc, char* argv[]) { | |
[d6ff3ff] | 22 | processor p; |
[7bdcac1] | 23 | for(int i = 0; TEST(i < N); i++) { |
[0322865c] | 24 | worker_t w[7]; |
[7bdcac1] | 25 | KICK_WATCHDOG; |
[cc3e4d0] | 26 | } |
[1449d83] | 27 | } |
Note: See TracBrowser
for help on using the repository browser.