Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/thread/thread1.c

    ra35b458 r6eef3c4  
    4545{
    4646        thread_detach(THREAD);
    47 
     47       
    4848        while (atomic_get(&finish)) {
    4949                TPRINTF("%" PRIu64 " ", THREAD->tid);
     
    5757        unsigned int i;
    5858        atomic_count_t total = 0;
    59 
     59       
    6060        atomic_set(&finish, 1);
    6161        atomic_set(&threads_finished, 0);
    62 
     62       
    6363        for (i = 0; i < THREADS; i++) {
    6464                thread_t *t;
     
    7171                total++;
    7272        }
    73 
     73       
    7474        TPRINTF("Running threads for 10 seconds...\n");
    7575        thread_sleep(10);
    76 
     76       
    7777        atomic_set(&finish, 0);
    7878        while (atomic_get(&threads_finished) < total) {
     
    8080                thread_sleep(1);
    8181        }
    82 
     82       
    8383        return NULL;
    8484}
Note: See TracChangeset for help on using the changeset viewer.