requestFC overloads

Synopses

Declared in <folly/synchronization/FlatCombining.h>

Requests execution of an operation, combining it with others when possible.

template<typename OpFunc>
void
requestFC(
    OpFunc&& opFn,
    Rec* rec = nullptr,
    bool syncop = true);

Requests a combinable operation using a custom fill function.

template<
    typename OpFunc,
    typename FillFunc>
void
requestFC(
    OpFunc&& opFn,
    FillFunc const& fillFn,
    Rec* rec = nullptr,
    bool syncop = true);

Requests a combinable operation with custom fill and result functions.

template<
    typename OpFunc,
    typename FillFunc,
    typename ResFn>
void
requestFC(
    OpFunc&& opFn,
    FillFunc const& fillFn,
    ResFn const& resFn,
    Rec* rec = nullptr);

Parameters

Name

Description

opFn

The operation to execute.

rec

Optional pre‐allocated record; nullptr allocates one.

syncop

Whether the request is synchronous.

fillFn

Fills the request record before combining.

resFn

Extracts the result after the operation completes.

Created with MrDocs