Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/monitor.c

    r83a071f9 rbd4d011  
    88};
    99
    10 void ?{}(global_t & this) {
    11         this.value = 0;
     10void ?{}(global_t * this) {
     11        this->value = 0;
    1212}
    1313
    1414static global_t global;
    1515
    16 void increment3( global_t & mutex this ) {
    17         this.value += 1;
     16void increment3( global_t * mutex this ) {
     17        this->value += 1;
    1818}
    1919
    20 void increment2( global_t & mutex this ) {
     20void increment2( global_t * mutex this ) {
    2121        increment3( this );
    2222}
    2323
    24 void increment( global_t & mutex this ) {
     24void increment( global_t * mutex this ) {
    2525        increment2( this );
    2626}
     
    2828thread MyThread {};
    2929
    30 void main( MyThread & this ) {
     30void main( MyThread* this ) {
    3131        for(int i = 0; i < 1_000_000; i++) {
    32                 increment( global );
     32                increment( &global );
    3333        }
    3434}
Note: See TracChangeset for help on using the changeset viewer.