5.6.9.1 The Locking Service

MySQL distributions provide a locking interface that is accessible at two levels:

For general information about plugin services, see Section 5.6.9, “MySQL Plugin Services”. For general information about loadable functions, see Adding a Loadable Function.

The locking interface has these characteristics:

The interface provided by the locking service is distinct from that provided by GET_LOCK() and related SQL functions (see Section 12.15, “Locking Functions”). For example, GET_LOCK() does not implement namespaces and provides only exclusive locks, not distinct read and write locks.

5.6.9.1.1 The Locking Service C Interface
5.6.9.1.2 The Locking Service Function Interface