File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,12 @@ public function supports_auto_release() {
149149 /**
150150 * Supports recursion.
151151 *
152+ * @deprecated since Moodle 3.10.
152153 * @return boolean True if attempting to get 2 locks on the same resource will "stack"
153154 */
154155 public function supports_recursion () {
156+ debugging ('The function supports_recursion() is deprecated, please do not use it anymore. ' ,
157+ DEBUG_DEVELOPER );
155158 return false ;
156159 }
157160
@@ -298,11 +301,14 @@ public function release_lock(lock $lock) {
298301 /**
299302 * Extend the timeout on a held lock.
300303 *
304+ * @deprecated since Moodle 3.10.
301305 * @param lock $lock lock obtained from this factory.
302306 * @param int $maxlifetime new max time to hold the lock.
303307 * @return boolean True if the lock was extended.
304308 */
305309 public function extend_lock (lock $ lock , $ maxlifetime = 86400 ) {
310+ debugging ('The function extend_lock() is deprecated, please do not use it anymore. ' ,
311+ DEBUG_DEVELOPER );
306312 return false ;
307313 }
308314
You can’t perform that action at this time.
0 commit comments