Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/thread.c

    rd67cdb7 r83a071f9  
     1//                              -*- Mode: CFA -*-
    12//
    23// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
     
    910// Author           : Thierry Delisle
    1011// Created On       : Tue Jan 17 12:27:26 2017
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 21 22:34:46 2017
    13 // Update Count     : 1
     12// Last Modified By : Thierry Delisle
     13// Last Modified On : --
     14// Update Count     : 0
    1415//
    1516
     
    3334
    3435void ?{}(thread_desc& this) {
    35         (this.self_cor){};
    36         this.self_cor.name = "Anonymous Coroutine";
    37         this.self_mon.owner = &this;
    38         this.self_mon.recursion = 1;
    39         this.self_mon_p = &this.self_mon;
     36        (this.cor){};
     37        this.cor.name = "Anonymous Coroutine";
     38        this.mon.owner = &this;
     39        this.mon.recursion = 1;
    4040        this.next = NULL;
    4141
    42         (this.monitors){ &this.self_mon_p, 1, (fptr_t)0 };
     42        this.current_monitors      = &this.mon;
     43        this.current_monitor_count = 1;
    4344}
    4445
    4546void ^?{}(thread_desc& this) {
    46         ^(this.self_cor){};
     47        ^(this.cor){};
    4748}
    4849
     
    8687
    8788void yield( void ) {
    88         BlockInternal( this_thread );
     89        BlockInternal( (thread_desc *)this_thread );
    8990}
    9091
Note: See TracChangeset for help on using the changeset viewer.