Changeset f80ab45 for src


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

Internal scheduling tests

Location:
src/tests
Files:
3 added
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.