Talk:Singleton

Revision as of 13:29, 5 December 2008 by Ce (talk | contribs) (Is the C++ thread-safe solution correct?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Is the C++ thread-safe solution correct? I don't know the MS API, but to me it looks as if the code creates a new mutex each time it executes the code. However, the mutex locking can only work if both threads lock the same mutex. --Ce 13:29, 5 December 2008 (UTC)

Return to "Singleton" page.