Ignore:
Timestamp:
Apr 27, 2017, 2:00:30 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
9c59cd4, f3fda4e
Parents:
0c78741
Message:

Internal scheduling tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/tests/sched-int.c

    r0c78741 rf80ab45  
     1#include <fstream>
    12#include <kernel>
    23#include <monitor>
     
    1516
    1617void step1( global_t * mutex this ) {
     18        sout | "Step 1" | endl;
    1719        this->value = 1;
    1820        wait( &cond );
     
    2224        if( this->value != 1) abort();
    2325
     26        sout | "Step 2" | endl;
    2427        this->value = 2;
    2528        signal( &cond );
     
    2932        if( this->value != 2) abort();
    3033
    31         this->value = 2;
     34        sout | "Step 3" | endl;
     35        this->value = 3;
    3236        signal( &cond );
    3337}
Note: See TracChangeset for help on using the changeset viewer.