Lets say I havve an array of two structs of the type mystruct_t:
typedef struct {
uint16_t member1;
bool member2;
} mystruct_t;
mystruct_t my_array[2];
What would happen if two tasks tried to access different parts of this array at the same time? If one task tried to access my_array[0] and another task tried to access my_array[1], would this create a race condition?
What would happen if two tasks tried to access different parts of the struct at the same time? If one task tried to access my_array[0].member1 and another task tried to access my_array[0].member2, would this create a race condition?
Update: I'm using version c99.