Modify

Opened 4 years ago

Closed 4 years ago

#8519 closed Feature Requests (fixed)

Synchro: Update class barrier with a completion function

Reported by: viboes Owned by: viboes
Milestone: Boost 1.55.0 Component: thread
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

Based on the ideas in N3600- C++ Latches and Barriers http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3600.html

add a completion function associated to the class barrier

    class barrier
    {
    public:
        barrier(barrier const&) = delete;
        barrier& operator=(barrier const&) = delete;

        barrier(unsigned int count);
        template <typename F>
        barrier(unsigned int count, F&&);

        ~barrier();

        bool wait();
        void count_down_and_wait();
    };


Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 4 years ago by viboes

Description: modified (diff)
Summary: Sync: Add a completion_latch classSynchro: Update class barrier with a completion function

comment:3 Changed 4 years ago by viboes

Milestone: To Be DeterminedBoost 1.55.0

comment:4 Changed 4 years ago by viboes

Committed revision [84809].

comment:5 Changed 4 years ago by viboes

Resolution: fixed
Status: assignedclosed

Changeset [85200]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.