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/kernel_private.hfa

    rb8e7aed rfd9b524  
    1010// Created On       : Mon Feb 13 12:27:26 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Nov 30 19:25:02 2019
    13 // Update Count     : 8
     12// Last Modified On : Wed Aug 12 08:21:33 2020
     13// Update Count     : 9
    1414//
    1515
     
    132132        while( __builtin_expect(__atomic_exchange_n(ll, (bool)true, __ATOMIC_SEQ_CST), false) ) {
    133133                while(__atomic_load_n(ll, (int)__ATOMIC_RELAXED))
    134                         asm volatile("pause");
     134                        Pause();
    135135        }
    136136        /* paranoid */ verify(*ll);
     
    186186        // Step 1 : make sure no writer are in the middle of the critical section
    187187        while(__atomic_load_n(&lock, (int)__ATOMIC_RELAXED))
    188                 asm volatile("pause");
     188                Pause();
    189189
    190190        // Fence needed because we don't want to start trying to acquire the lock
Note: See TracChangeset for help on using the changeset viewer.