Function rmw_create_guard_condition
Defined in File rmw.h
Function Documentation
-
rmw_guard_condition_t *rmw_create_guard_condition(rmw_context_t *context)
Create a guard condition and return a handle to that guard condition.
This function can fail, and therefore return
NULL, if:context is
NULLcontext is invalid
memory allocation fails during guard condition creation
an unspecified error occurs
The context must be non-null and valid, i.e. it has been initialized by
rmw_init()and has not been finalized byrmw_shutdown().
[1] rmw implementation defined, check the implementation documentationAttribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No [1]
Lock-Free
No [1]
This should be defined by the rmw implementation.
- Parameters:
context – [in] init context that this node should be associated with
- Returns:
rmw guard condition handle or
NULLif there was an error