is the register keyword thread-safe?

Hi all,

I am currently insulating my code to make it thread-safe. To do so I am on a "seek-and-destroy" mission for the static keyword (when applied to variables). Is it safe to use the register keyword with multithreading? My initial googling didn't return any concrete answer.

Cheers!
As long as you don't use it for globals, which I'm not sure is possible.

It's usually better to leave where the variables should go to the compiler.
The register keyword is only a hint to the compiler, much like inline.
You cannot declare global values as 'register'.

And yes, as helios said (in "As long as you don't use it for globals..."), it is thread-safe.

Enjoy!
Topic archived. No new replies allowed.