summaryrefslogtreecommitdiff
path: root/include/llvm/Support/ManagedStatic.h
Commit message (Collapse)AuthorAge
* Merge System into Support.Michael J. Spencer2010-11-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove dead code. ManagedCleanup is unused, and contained a serious bug in thatOwen Anderson2010-09-07
| | | | | | | the provided cleanup function is never actually called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113284 91177308-0d34-0410-b5e6-96231b3b80d8
* Resolve undefined behaviour when ManagedStatic is instantiated with a ↵Alisdair Meredith2009-07-09
| | | | | | fixed-length array type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75149 91177308-0d34-0410-b5e6-96231b3b80d8
* Fences are expensive. Avoid doing them when we're not in multithreaded mode.Owen Anderson2009-06-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73777 91177308-0d34-0410-b5e6-96231b3b80d8
* Move Threading.[h|cpp] from Support to System.Owen Anderson2009-06-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73707 91177308-0d34-0410-b5e6-96231b3b80d8
* Split the thread-related APIs out into their own file, and add a few moreOwen Anderson2009-06-16
| | | | | | | calls for convenience. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73512 91177308-0d34-0410-b5e6-96231b3b80d8
* Have llvm_start_multithreaded return a bool indicating whether multithreadedOwen Anderson2009-05-20
| | | | | | | initialization succeeded or not, rather than just asserting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72182 91177308-0d34-0410-b5e6-96231b3b80d8
* Add llvm_start_multithreaded(), which starts up the LLVM internals in ↵Owen Anderson2009-05-20
| | | | | | | | | thread-safe mode. Provide double-check locking initialization of ManagedStatic's when running in thread-safe mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72151 91177308-0d34-0410-b5e6-96231b3b80d8
* Back out the thread-safe ManagedStatic for now. Too many people have too ↵Owen Anderson2009-05-16
| | | | | | many problems with it for the moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71931 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor out some common code, fix more typoes, and add a memory fence that ↵Owen Anderson2009-05-15
| | | | | | might be needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71853 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an unfortunate typo.Owen Anderson2009-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71852 91177308-0d34-0410-b5e6-96231b3b80d8
* Now with working on Leopard!Owen Anderson2009-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71819 91177308-0d34-0410-b5e6-96231b3b80d8
* Make ManagedStatic threadsafe by using atomic operations.Owen Anderson2009-05-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71796 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed trailing whitespace.Misha Brukman2009-02-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't attribute in file headers anymore. See llvmdev for theChris Lattner2007-12-29
| | | | | | | | discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
* add a way to register an arbitrary cleanup function.Chris Lattner2007-02-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34442 91177308-0d34-0410-b5e6-96231b3b80d8
* add helper method.Chris Lattner2007-02-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34155 91177308-0d34-0410-b5e6-96231b3b80d8
* add a helper to call llvm_shutdown()Chris Lattner2006-12-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32249 91177308-0d34-0410-b5e6-96231b3b80d8
* new helper class to provide more explicit management of static ctor/dtors.Chris Lattner2006-09-28
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30638 91177308-0d34-0410-b5e6-96231b3b80d8