Ignore:
Timestamp:
May 17, 2021, 9:20:55 PM (8 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
d7ae173
Parents:
d2afe17
Message:

Small fixes to lock and alarm around possible race and the thunk problem.

File:
1 edited

Legend:

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

    rd2afe17 rafd7faf  
    118118                insert( &alarms, this );
    119119                __kernel_set_timer( this->initial );
     120                this->set = true;
    120121        }
    121122        unlock( event_kernel->lock );
    122         this->set = true;
    123123        enable_interrupts();
    124124}
     
    129129        {
    130130                verify( validate( event_kernel->alarms ) );
    131                 remove( *this );
     131                if (this->set) remove( *this );
     132                this->set = false;
    132133        }
    133134        unlock( event_kernel->lock );
    134135        enable_interrupts();
    135         this->set = false;
    136136}
    137137
Note: See TracChangeset for help on using the changeset viewer.