Skip to content

Commit

Permalink
Update mwcex_executor.h
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <[email protected]>
  • Loading branch information
678098 authored Jul 19, 2024
1 parent 408e51b commit 6bb9494
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions src/groups/mwc/mwcex/mwcex_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class Executor_Box_SboImp {

/// Provides a "small" dummy object which size is used to calculate the
/// size of the on-stack buffer used to store the executor target.
struct Dummy : public Executor_TargetBase {
struct Dummy {
void* d_padding[4];

bool
Expand All @@ -303,51 +303,6 @@ class Executor_Box_SboImp {
}

void post(BSLS_ANNOTATION_UNUSED const bsl::function<void()>& f) const
BSLS_KEYWORD_OVERRIDE
{
// NOTHING
}

/// Perform `ExecutorTraits<E>::dispatch(e, f)`, where `e` is the
/// contained executor target of type `E`.
void dispatch(BSLS_ANNOTATION_UNUSED const bsl::function<void()>& f)
const BSLS_KEYWORD_OVERRIDE
{
// NOTHING
}

/// Move-construct `*this` into the specified `dst` address.
void move(BSLS_ANNOTATION_UNUSED void* dst)
BSLS_KEYWORD_NOEXCEPT BSLS_KEYWORD_OVERRIDE
{
// NOTHING
}

bool equal(BSLS_ANNOTATION_UNUSED const Executor_TargetBase& other)
const BSLS_KEYWORD_NOEXCEPT
{
// NOTHING
}

/// Return a pointer to the contained executor target.
void* target() BSLS_KEYWORD_NOEXCEPT
{
// NOTHING
}

const void* target() const BSLS_KEYWORD_NOEXCEPT
{
// NOTHING
}

/// Return `typeid(e)`, where `e` is the contained executor target.
const bsl::type_info& targetType() const BSLS_KEYWORD_NOEXCEPT
{
// NOTHING
}

/// Copy-construct `*this` into the specified `dst` address.
void copy(BSLS_ANNOTATION_UNUSED void* dst) const BSLS_KEYWORD_NOEXCEPT
{
// NOTHING
}
Expand Down

0 comments on commit 6bb9494

Please sign in to comment.