source: src/tests/preempt_longrun/create.c @ b9da9585

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since b9da9585 was b9da9585, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Fixed long run tests

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