locked
Is ^ thread safe? (reference count part)

    Question

  • Hi,

    I am writing something like:

    static a_hat^ = nullptr;
    
    void a_function_could_be_called_currently()
    {
      a_hat = ref new something();
    }

    Is it thread safe? will there be any memory leak due to ref counting if it is not thread safe?

    Thanks,

    Helin



    • Edited by Helin Wang Thursday, December 13, 2012 1:46 AM
    Thursday, December 13, 2012 1:10 AM

Answers

All replies