Thread Local Storage

Comments

2 comments

  • Avatar
    Michael Johnson

    __thread int x;

    should do it.

    0
    Comment actions Permalink
  • Avatar
    Jmfrey

    Thanks, that was easier than expected!

    I still find no mention of this in the documentation. Is it actually documented somewhere?

    0
    Comment actions Permalink

Please sign in to leave a comment.