Opened 9 years ago

Closed 9 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();
    };


Change History (5)

comment:1 by viboes, 9 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 9 years ago

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

comment:3 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0

comment:4 by viboes, 9 years ago

Committed revision [84809].

comment:5 by viboes, 9 years ago

Resolution: fixed
Status: assignedclosed

Changeset [85200]

Note: See TracTickets for help on using tickets.