4
A user can create a "lock" which is scoped to their user space. Multiple
5
session of the user can see the lock.
11
SELECT RELEASE_LOCK();
13
SELECT RELEASE_LOCK();
15
SELECT RELEASE_LOCKS();
17
SELECT is_free_lock();
19
SELECT is_used_lock();
21
SELECT wait_for_lock();
23
SELECT release_lock_and_wait();
25
If a session should exit, whatever locks it was holding will be deleted.
27
Please note, get_lock() was designed to be compatible with MySQL. If you
28
hold any locks when calling get_lock() they will be released. For this
29
reason you may want to consider calling get_locks() instead.
31
release_lock_and_wait() released the named lock, and then waits for another
32
session to try to obtain ownership. If it does not own the lock, it returns
35
Information on all barriers can be found in the DATA_DICTIONARY.USER_LOCKS