Ignore:
Timestamp:
Apr 25, 2025, 7:39:09 AM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
65bd3c2
Parents:
b195498
Message:

change backquote call to regular call

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/barrier.hfa

    rb195498 r6b33e89  
    1111// Created On       : Sun Nov 10 08:07:35 2024
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Wed Nov 13 12:37:04 2024
    14 // Update Count     : 9
     13// Last Modified On : Thu Apr 24 22:41:11 2025
     14// Update Count     : 12
    1515//
    1616
     
    3131
    3232// Returns a value indicating the reverse order the threads arrived, i.e. last thread returns 0 (and does not block)
    33 // last is an optional hook that is called by the Gth thread before unblocking the other threads.
    34 static inline unsigned int block( barrier & mutex b, fptr_t last = (fptr_t)0 ) with( b ) {
     33// hook is an optional hook that is called by the Gth thread before unblocking the other threads.
     34static inline unsigned int block( barrier & mutex b, fptr_t hook = (fptr_t)0 ) with( b ) {
    3535        arrivals -= 1;                                                                          // prefix decrement so last is 0 not 1
    3636        unsigned arrived = b.arrivals;                                          // note arrival order
     
    3838                wait( b.c );
    3939        } else {                                                                                        // group formed
    40                 if ( last ) last();                                                             // safe to call
     40                if ( hook ) hook();                                                             // safe to call
    4141                signal_all( c );                                                                // unblock group
    4242                arrivals = group;                                                               // reset
Note: See TracChangeset for help on using the changeset viewer.