Ignore:
Timestamp:
Jun 5, 2018, 3:35:49 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
beefc34c
Parents:
41770ed1 (diff), dafdbe7 (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
  • src/libcfa/concurrency/kernel.c

    r41770ed1 r174845e  
    663663        __cfaabi_dbg_print_safe("Kernel : Processor %p ready to sleep\n", this);
    664664
    665         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
    666         sem_wait(&idleLock);
     665        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
     666        int __attribute__((unused)) ret = sem_wait(&idleLock);
     667        verify(ret > 0 || errno == EINTR);
    667668
    668669        __cfaabi_dbg_print_safe("Kernel : Processor %p woke up and ready to run\n", this);
     
    678679void wake(processor * this) {
    679680        __cfaabi_dbg_print_safe("Kernel : Waking up processor %p\n", this);
    680         sem_post(&this->idleLock);
    681         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
     681        int __attribute__((unused)) ret = sem_post(&this->idleLock);
     682        verify(ret > 0 || errno == EINTR);
     683        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
    682684}
    683685
Note: See TracChangeset for help on using the changeset viewer.