Ignore:
Timestamp:
Aug 4, 2020, 5:13:51 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
eafec07
Parents:
3f850d7 (diff), 21b0a23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r3f850d7 r53ee27e  
    2626
    2727#include "bits/signal.hfa"
     28#include "kernel_private.hfa"
    2829
    2930#if !defined(__CFA_DEFAULT_PREEMPTION__)
     
    293294// Startup routine to activate preemption
    294295// Called from kernel_startup
    295 void kernel_start_preemption() {
     296void __kernel_alarm_startup() {
    296297        __cfaabi_dbg_print_safe( "Kernel : Starting preemption\n" );
    297298
     
    315316// Shutdown routine to deactivate preemption
    316317// Called from kernel_shutdown
    317 void kernel_stop_preemption() {
     318void __kernel_alarm_shutdown() {
    318319        __cfaabi_dbg_print_safe( "Kernel : Preemption stopping\n" );
    319320
     
    481482        sigset_t oldset;
    482483        int ret;
    483         ret = pthread_sigmask(0, 0p, &oldset);
     484        ret = pthread_sigmask(0, ( const sigset_t * ) 0p, &oldset);  // workaround trac#208: cast should be unnecessary
    484485        if(ret != 0) { abort("ERROR sigprocmask returned %d", ret); }
    485486
Note: See TracChangeset for help on using the changeset viewer.