Ignore:
Timestamp:
Feb 6, 2020, 10:23:27 AM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
3381ed7
Parents:
4f7b418
Message:

First attempt at park/unpark

File:
1 edited

Legend:

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

    r4f7b418 r9f575ea  
    394394        // Preemption can occur here
    395395
    396         BlockInternal( kernelTLS.this_thread ); // Do the actual CtxSwitch
     396        kernelTLS.this_thread->preempted = true;
     397        BlockInternal(); // Do the actual CtxSwitch
    397398}
    398399
Note: See TracChangeset for help on using the changeset viewer.