15 #ifndef RCL__CONTEXT_H_ 16 #define RCL__CONTEXT_H_ 33 #define RCL_ALIGNAS(N) __declspec(align(N)) 36 #define RCL_ALIGNAS(N) alignas(N) 41 struct rcl_context_impl_t;
115 struct rcl_context_impl_t *
impl;
120 #if !defined(RCL_CONTEXT_ATOMIC_INSTANCE_ID_STORAGE_SIZE) 121 #define RCL_CONTEXT_ATOMIC_INSTANCE_ID_STORAGE_SIZE sizeof(uint_least64_t) 239 rcl_context_instance_id_t
290 #endif // RCL__CONTEXT_H_
rmw_context_t * rcl_context_get_rmw_context(rcl_context_t *context)
Return pointer to the rmw context if the given context is currently valid, otherwise NULL...
rcl_context_t rcl_get_zero_initialized_context(void)
Return a zero initialization context object.
rcl_ret_t rcl_context_fini(rcl_context_t *context)
Finalize a context.
rmw_ret_t rcl_ret_t
Definition: types.h:20
Hold output of parsing command line arguments.
Definition: arguments.h:31
rcl_context_instance_id_t rcl_context_get_instance_id(rcl_context_t *context)
Returns an unsigned integer that is unique to the given context, or 0 if invalid. ...
const rcl_init_options_t * rcl_context_get_init_options(rcl_context_t *context)
Return the init options used during initialization for this context.
#define RCL_WARN_UNUSED
Ignored return values of functions with this macro will emit a warning.
Definition: macros.h:25
bool rcl_context_is_valid(rcl_context_t *context)
Return true if the given context is currently valid, otherwise false.
#define RCL_PUBLIC
Definition: visibility_control.h:48
rcl_arguments_t global_arguments
Global arguments for all nodes which share this context.
Definition: context.h:112
Encapsulation of init options and implementation defined init options.
Definition: init_options.h:33
struct rcl_context_impl_t * impl
Implementation specific pointer.
Definition: context.h:115
Encapsulates the non-global state of an init/shutdown cycle.
Definition: context.h:108
#define RCL_CONTEXT_ATOMIC_INSTANCE_ID_STORAGE_SIZE
Definition: context.h:121
RCL_ALIGNAS(8) uint8_t instance_id_storage[RCL_CONTEXT_ATOMIC_INSTANCE_ID_STORAGE_SIZE]
Private storage for instance ID atomic.
uint64_t rcl_context_instance_id_t
Definition: context.h:39