Call function at most once across all threads for this object.

Synopses

Declared in <bslmt_once.h>

Call function at most once across all threads for this object.

template<class FUNC>
void
callOnce(FUNC& function);

Call function at most once across all threads for this object.

template<class FUNC>
void
callOnce(FUNC const& function);

Parameters

Name

Description

function

no‐argument function or functor to invoke at most once

Created with MrDocs