Function succeed

Synopsis

#include <src/entt/process/process.hpp>

void succeed() noexcept

Description

Terminates a process with success if it's still alive.

The function is idempotent and it does nothing if the process isn't alive.

Mentioned in

Source

Lines 123-127 in src/entt/process/process.hpp.

void succeed() ENTT_NOEXCEPT {
    if(alive()) {
        current = state::SUCCEEDED;
    }
}





Add Discussion

Log in to comment