I have a structure
typedef struct my_s { int x; ... } my_T; my_t * p_my_t;
I want to set the address of p_my_t to
p_my_t
From reading your multi-thread comments I should say there is no safe sequence of code to accomplish your task. You will have to step back and reexamine your algorithm.