DTNMA Reference Tools v2.2.0 - 5.ga116361
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
exec_status.c File Reference
#include "exec_status.h"
#include <cace/util/defs.h>
#include <cace/util/logging.h>
#include <stddef.h>
+ Include dependency graph for exec_status.c:

Functions

void refda_exec_status_init (refda_exec_status_t *obj)
 
void refda_exec_status_deinit (refda_exec_status_t *obj)
 
bool refda_exec_status_wait (refda_exec_status_t *obj)
 Wait for the finished semaphore and take it.
 
void refda_exec_status_post (refda_exec_status_t *obj, bool failed)
 Set the failed state and post the semaphore.
 

Function Documentation

◆ refda_exec_status_deinit()

◆ refda_exec_status_init()

◆ refda_exec_status_post()

void refda_exec_status_post ( refda_exec_status_t obj,
bool  failed 
)

Set the failed state and post the semaphore.

Parameters
[in,out]objThe status to update.
failedTrue to mark as a failure.
Postcondition
Any waiting call will be awoken.

References CACE_LOG_DEBUG, refda_exec_status_t::failed, refda_exec_status_t::finished, refda_exec_status_t::on_finished, refda_exec_status_t::on_finished_arg, and refda_exec_status_t::seq.

Referenced by refda_exec_add_target(), refda_exec_proc_clear(), refda_exec_proc_pop_front(), refda_exec_seq_pop_front(), and refda_exec_seq_terminate().

◆ refda_exec_status_wait()

bool refda_exec_status_wait ( refda_exec_status_t obj)

Wait for the finished semaphore and take it.

Parameters
[in]objThe status to wait on.
Returns
True if there was a failure.

References CHKRET, refda_exec_status_t::failed, and refda_exec_status_t::finished.

Referenced by refda_agent_startup_exec().