summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Mutex.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-157/+0
| | | | llvm-svn: 120298
* Tweak code into an equivalent form for which iccDuncan Sands2009-09-061-6/+3
| | | | | | | doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). llvm-svn: 81110
* Insert a SmartMutex templated class into the class hierarchy, which takes a ↵Owen Anderson2009-06-181-10/+10
| | | | | | | | template parameter specifying whether this mutex should become a no-op when not running in multithreaded mode. Make sys::Mutex a typedef of SmartMutex<false>, to preserve source compatibility. llvm-svn: 73709
* plug leakage of mutex data. pthread_mutex_destroy() doesnt free our ↵Nuno Lopes2008-11-061-1/+1
| | | | | | malloc'ed memory. llvm-svn: 58805
* Make LLVM compile on DragonFly BSD (PR2499).Matthijs Kooijman2008-06-261-1/+1
| | | | | | Patch by Hasso Tepper! llvm-svn: 52781
* Use static_cast instead of reinterpret_cast for casting void*.Dan Gohman2008-06-211-4/+4
| | | | llvm-svn: 52592
* Remove uses of llvm/System/IncludeFile.h that are no longer needed.Dan Gohman2008-05-061-1/+0
| | | | llvm-svn: 50695
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* remove obviously dead uses of IncludeFile.Chris Lattner2007-12-181-1/+0
| | | | llvm-svn: 45165
* For PR808:Reid Spencer2007-01-201-1/+1
| | | | | | NetBSD also doesn't have pthread_mutexattr_setpshared llvm-svn: 33406
* Get rid of unused variable.Reid Spencer2006-11-021-1/+1
| | | | llvm-svn: 31373
* simplify AnalysisGroup registration, eliminating one typeid call.Chris Lattner2006-08-281-1/+1
| | | | llvm-svn: 29932
* For PR780:Reid Spencer2006-07-261-0/+3
| | | | | | | | | | | | 1. Move IncludeFile.h to System library 2. Move IncludeFile.cpp to System library 3. #1 and #2 required to prevent cyclic library dependencies for libSystem 4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h 5. Add IncludeFile support to various lib/System classes. 6. Add new lib/System classes to LinkAllVMCore.h All this in an attempt to pull in lib/System to what's required for VMCore llvm-svn: 29287
* Add checks for __OpenBSD__.Jeff Cohen2006-04-171-1/+1
| | | | llvm-svn: 27761
* For PR616:Reid Spencer2005-08-241-3/+17
| | | | | | | | | | These patches make threading optional in LLVM. The configuration scripts are now modified to accept a --disable-threads switch. If this is used, the Mutex class will be implemented with all functions as no-op. Furthermore, linking against libpthread will not be done. Finally, the ParallelJIT example needs libpthread so its makefile was changed to always add -lpthread to the link line. llvm-svn: 23003
* Fix grammar: it's == "it is".Misha Brukman2005-08-021-1/+1
| | | | llvm-svn: 22587
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-7/+7
| | | | llvm-svn: 22523
* Don't call pthread_mutexattr_setpshared on FreeBSD because its implementationReid Spencer2005-07-131-0/+2
| | | | | | of pthreads is missing that call (despite it violating the spec). llvm-svn: 22423
* Win32 support for Mutex class.Jeff Cohen2005-07-131-3/+5
| | | | llvm-svn: 22420
* For PR540:Reid Spencer2005-07-121-0/+141
Add a Mutex class for thread synchronization in a platform-independent way. The current implementation only supports pthreads. Win32 use of Critical Sections will be added later. The design permits other threading models to be used if (and only if) pthreads is not available. llvm-svn: 22403
OpenPOWER on IntegriCloud