commit | 2635573a7f2e4bbd259379acf91efb97d983359f | [log] [tgz] |
---|---|---|
author | Ralph Giles <giles@mozilla.com> | Fri Nov 13 12:56:34 2015 -0800 |
committer | Ralph Giles <giles@mozilla.com> | Fri Nov 13 13:04:36 2015 -0800 |
tree | 97367978477d49f3f6c76be20075d565af87bb3f | |
parent | 988fd77c1fc9e9b47e1da00c3aeae932c3d06899 [diff] |
Use Interlocked calls in win32 once() implementation. This is simpler than the previous scheme, which tried to allocate the CRITICAL_SECTION struct in a thread-safe manner before it could use it to run the wrapped function in a thread-safe manner. Change-Id: I172e5544e5f16403a3a0e5e2b9104b1292a0d786