[llvm-commits] [PATCH] Thread-safe ManagedStatic

Owen Anderson resistor at mac.com
Mon May 18 18:25:38 PDT 2009


So, now that we have the basic infrastructure more or less in place, here's another attempt at making a thread-safe version of ManagedStatic based on double-checked locking with explicit fences.  It also proved necessary to provide atomic update facilities for the global StaticList as well.

Please see the included block comment for more details on exactly what safety guarantees this code provides.

--Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ManagedStatic.diff
Type: application/octet-stream
Size: 4719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090518/0f336639/attachment.obj>


More information about the llvm-commits mailing list