I am currently doing the following to access my shared memory:
extern shared in sdata;
extern shared unsigned int usdata;
Now I have two declarations because I want to access fields as ints in one situation and unsigned int in another. Does this setup work without problems? Are the two declarations treated as pointers to the beginning of the shared memory? Is there a better way?