Function rcutils_get_default_allocator

Function Documentation

rcutils_allocator_t rcutils_get_default_allocator(void)

Return a properly initialized rcutils_allocator_t with default values.

This defaults to:

  • allocate = wraps malloc()

  • deallocate = wraps free()

  • reallocate = wraps realloc()

  • zero_allocate = wraps calloc()

  • state = NULL

Attribute

Adherence

Allocates Memory

No

Thread-Safe

Yes

Uses Atomics

No

Lock-Free

Yes