[FEATURE] Add Locking API 00/37700/20
authorMarkus Klein <klein.t3@reelworx.at>
Sat, 7 Mar 2015 14:09:46 +0000 (15:09 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 13 Apr 2015 12:19:06 +0000 (14:19 +0200)
commit889d9d09baacdfa23aabfa0495476ec1a6f8c63a
tree5d512b96fceea5256c567ca48c3fa643ec056290
parent326f639629a8b352dabca5ac5c49b99a65c753ab
[FEATURE] Add Locking API

This patch adds a flexible locking API, which allows to be
extended by extensions.

It also deprecates the old API and adjusts all Core usages.

Resolves: #47712
Releases: master
Change-Id: Iff144b4dd7d5d3fed357380f1669a92dece04c2c
Reviewed-on: http://review.typo3.org/37700
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
20 files changed:
typo3/sysext/core/Classes/Core/ClassLoader.php
typo3/sysext/core/Classes/Locking/FileLockStrategy.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/LockFactory.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/Locker.php
typo3/sysext/core/Classes/Locking/LockingStrategyInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/SemaphoreLockStrategy.php [new file with mode: 0644]
typo3/sysext/core/Classes/Locking/SimpleLockStrategy.php [new file with mode: 0644]
typo3/sysext/core/Classes/Mail/MboxTransport.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-47712-DeprecateOldLockingAPI.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-47712-NewLockingAPI.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Locking/FileLockStrategyTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Locking/Fixtures/DummyLock.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Locking/LockFactoryTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Locking/SemaphoreLockStrategyTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Locking/SimpleLockStrategyTest.php [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/RequestHandler.php