Changeset 1ddbf3b


Ignore:
Timestamp:
Jun 4, 2018, 4:29:16 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, with_gc
Children:
2ad4b49
Parents:
249d6e6
Message:

Added verifies to the hlad/wake processor routines

File:
1 edited

Legend:

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

    r249d6e6 r1ddbf3b  
    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);
    665666        sem_wait(&idleLock);
    666667
     
    678679        __cfaabi_dbg_print_safe("Kernel : Waking up processor %p\n", this);
    679680        sem_post(&this->idleLock);
     681        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
    680682}
    681683
Note: See TracChangeset for help on using the changeset viewer.