aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutex.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change the copyrights in all files in the Botan tree to directly reflectlloyd2008-04-101-1/+1
| | | | | | the actual copyright holders. For rationale, see my post to botan-devel on April 9, subject 'Changing license to directly reflect contributors' (http://www.randombit.net/pipermail/botan-devel/2008-April/000527.html)
* Remove the Named_Mutex_Holder and associated code. Convert all uses tolloyd2008-04-021-18/+0
| | | | | | | | | | | | | | instead allocate a reference to a mutex locally and use the more typical Mutex_Holder RAII object. Named_Mutex_Holder (and in particular the string->mutex mappings contained in the global state) have been found to be pretty expensive in at least some situations (see post by Jack Cummings to monotone-devel 2008-03-12), and doesn't really buy us that much in terms of ease of use. Also, it relies on the global state object, which has shown itself to be a rich source of race conditions and locking bugs. The intent is to incrementally remove all of the shared / global state and require applications to maintain that state where necessary.
* Mostly revert 2f4fd18182d5a75c40cd831e7ee3c314be5c57d6, only keep thelloyd2008-03-101-1/+1
| | | | | updated dates on files that have actually changed this year. This makes the diff across versions readable again.
* Mass update of the copyright date. Honestly I don't know why I bother,lloyd2008-02-141-1/+1
| | | | | | | but might as well keep it up to date. And it's easier to do it once with a 'perl -pi' command than to update each file over time. Apologies to anyone looking at diffs.
* Bump copyright year to 2007lloyd2007-01-201-1/+1
|
* Make Mutex_Factory an abstract class, move the creation of the no-oplloyd2006-07-071-1/+1
| | | | Default_Mutex to the new Default_Mutex_Factory
* Support named mutexes outside of the global library state.lloyd2006-06-251-0/+18
| | | | | | Alter the AEP engine to use one in favor of a static Mutex pointer. Fix a stupid typo in an exception message.
* Fix the constructor of Mutex_State_Errorlloyd2006-06-231-5/+3
|
* Add a new exception type in src/mutex.cpp to make the code a little morelloyd2006-06-231-2/+12
| | | | readable.
* Inline a number of small objects that are only used in a local contextlloyd2006-06-231-37/+22
| | | | | | | (ie, a single function). This will, unfortunately, break GCC 2.95.x support. Most of the operating systems that had shipped with 2.95.x, like OpenBSD and QNX, have since upgraded. Anyone needing 2.95.x support will have to continue using 1.4.x
* Initial checkin1.5.6lloyd2006-05-181-0/+73