Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Do not move arrival_token in barrier::try_wait #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 27, 2023

  1. Do not move arrival_token in barrier::try_wait

    Take a mutable reference instead.
    
    Moving the token into try_wait makes no sense. The caller has to be able
    to retry the try wait with the same token.
    
    For more details and C++ spec, see:
    
    https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2643r1.html
    ahendriksen committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    05bea95 View commit details
    Browse the repository at this point in the history