Ignore:
Timestamp:
Aug 20, 2020, 10:56:27 PM (16 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
74f5c83
Parents:
b8e7aed
git-author:
Peter A. Buhr <pabuhr@…> (08/20/20 22:54:39)
git-committer:
Peter A. Buhr <pabuhr@…> (08/20/20 22:56:27)
Message:

change from asm volatile(pause) to Pause()

File:
1 edited

Legend:

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

    rb8e7aed rfd9b524  
    118118        __scheduler_lock_id_t * storage = (__scheduler_lock_id_t *)&data[n];
    119119        (*storage){ proc };
    120         while(true) {
     120        while() {
    121121                unsigned copy = n;
    122122                if( __atomic_load_n(&ready, __ATOMIC_RELAXED) == n
    123123                        && __atomic_compare_exchange_n(&ready, &copy, n + 1, true, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST))
    124124                        break;
    125                 asm volatile("pause");
     125                Pause();
    126126        }
    127127
Note: See TracChangeset for help on using the changeset viewer.