|
DTNMA Reference Tools v2.2.0 - 5.ga116361
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
#include <m-atomic.h>#include <semaphore.h>#include <stdbool.h>
Include dependency graph for exec_status.h:
This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | refda_exec_status_t |
| Mechanism to provide a "future"-type interface for execution. More... | |
Typedefs | |
| typedef struct refda_exec_seq_s | refda_exec_seq_t |
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. | |
| typedef struct refda_exec_seq_s refda_exec_seq_t |
| void refda_exec_status_deinit | ( | refda_exec_status_t * | obj | ) |
| void refda_exec_status_init | ( | refda_exec_status_t * | obj | ) |
| void refda_exec_status_post | ( | refda_exec_status_t * | obj, |
| bool | failed | ||
| ) |
Set the failed state and post the semaphore.
| [in,out] | obj | The status to update. |
| failed | True to mark as a failure. |
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().
| bool refda_exec_status_wait | ( | refda_exec_status_t * | obj | ) |
Wait for the finished semaphore and take it.
| [in] | obj | The status to wait on. |
References CHKRET, refda_exec_status_t::failed, and refda_exec_status_t::finished.
Referenced by refda_agent_startup_exec().