Changes in / [6a8df56:4b1be68]


Ignore:
Location:
src
Files:
2 edited

Legend:

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

    r6a8df56 r4b1be68  
    408408        verify( !preemption_state.enabled );
    409409        lock( ready_queue_lock __cfaabi_dbg_ctx2 );
    410         //TEMP hack to find a bug
    411         if(this_processor != mainProcessor) {
    412                 if(ready_queue.head == mainThread) {
    413                         unlock( ready_queue_lock );
    414                         return NULL;
    415                 }
    416         }
    417 
    418410        thread_desc * head = pop_head( ready_queue );
    419411        unlock( ready_queue_lock );
  • src/tests/preempt_longrun/processor.c

    r6a8df56 r4b1be68  
    1616void main(worker_t & this) {}
    1717
    18 extern processor *   mainProcessor;
    19 extern thread_desc * mainThread;
    20 
    2118int main(int argc, char* argv[]) {
    2219        for(int i = 0; i < N; i++) {
    23                 assert(this_processor == mainProcessor);
    24                 assert(this_thread == mainThread);
    2520                processor p;
    2621        }
Note: See TracChangeset for help on using the changeset viewer.