Changeset 58688bf


Ignore:
Timestamp:
Nov 3, 2020, 1:16:38 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
2c7eee0
Parents:
e873838
Message:

Added assertion to check there aren't pending unparks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.cfa

    re873838 r58688bf  
    469469
    470470                thrd->state = Halted;
    471 
     471                if( TICKET_RUNNING != thrd->ticket ) { abort( "Thread terminated with pending unpark" ); }
    472472                if( thrd != this->owner || this->recursion != 1) { abort( "Thread internal monitor has unbalanced recursion" ); }
    473473
     
    735735                this.print_halts = true;
    736736        }
     737
     738        void print_stats_now( cluster & this, int flags ) {
     739                __print_stats( this.stats, this.print_stats, true, this.name, (void*)&this );
     740        }
    737741#endif
    738742// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.