source: tests/preempt_longrun/create.c @ 76beed8

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 76beed8 was 73abe95, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Replace extension-less headers with .hfa

  • Property mode set to 100644
File size: 447 bytes
Line 
1#include <kernel.hfa>
2#include <thread.hfa>
3#include <time.hfa>
4
5#include "long_tests.h"
6
7#ifndef PREEMPTION_RATE
8#error PREEMPTION_RATE not defined in makefile
9#endif
10
11Duration default_preemption() {
12        return PREEMPTION_RATE;
13}
14
15static const unsigned long N = 60_000ul;
16
17thread worker_t {};
18
19void main(worker_t & this) {}
20
21int main(int argc, char* argv[]) {
22        processor p;
23        for(int i = 0; TEST(i < N); i++) {
24                worker_t w[7];
25                KICK_WATCHDOG;
26        }
27}
Note: See TracBrowser for help on using the repository browser.