RTEMS
5.0.0
|
Union type to hold a pointer to an immutable or a mutable object. More...
#include <thread.h>
Data Fields | |
void * | mutable_object |
const void * | immutable_object |
Union type to hold a pointer to an immutable or a mutable object.
The main purpose is to enable passing of pointers to read-only send buffers in the message passing subsystem. This approach is somewhat fragile since it prevents the compiler to check if the operations on objects are valid with respect to the constant qualifier. An alternative would be to add a third pointer argument for immutable objects, but this would increase the structure size.