43 extern ibool lock_print_waits;
110 const rec_t* old_end);
131 const rec_t* orig_succ,
178 const rec_t* orig_pred,
269 __attribute__((warn_unused_result));
292 __attribute__((nonnull, warn_unused_result));
311 const ulint* offsets,
313 __attribute__((warn_unused_result, nonnull));
334 __attribute__((warn_unused_result, nonnull(2,3,4,6)));
352 const ulint* offsets,
382 const ulint* offsets,
421 __attribute__((nonnull, warn_unused_result));
433 const ulint* offsets,
453 __attribute__((nonnull, warn_unused_result));
468 __attribute__((nonnull, warn_unused_result));
489 enum lock_mode lock_mode);
510 ibool remove_also_table_sx_locks);
523 __attribute__((
const));
560 enum lock_mode* mode);
573 __attribute__((nonnull));
595 const ulint* offsets,
597 __attribute__((nonnull));
624 __attribute__((nonnull, warn_unused_result));
644 __attribute__((nonnull, warn_unused_result));
754 extern "C" UNIV_INTERN
802 __attribute__((nonnull));
811 __attribute__((nonnull));
823 const ulint* offsets)
824 __attribute__((nonnull, warn_unused_result));
834 __attribute__((warn_unused_result));
847 __attribute__((nonnull, warn_unused_result));
852 #define LOCK_MODE_MASK 0xFUL
856 #define LOCK_TABLE 16
858 #define LOCK_TYPE_MASK 0xF0UL
860 #if LOCK_MODE_MASK & LOCK_TYPE_MASK
861 # error "LOCK_MODE_MASK & LOCK_TYPE_MASK"
864 #define LOCK_WAIT 256
869 #define LOCK_ORDINARY 0
879 #define LOCK_REC_NOT_GAP 1024
887 #define LOCK_INSERT_INTENTION 2048
896 #if (LOCK_WAIT|LOCK_GAP|LOCK_REC_NOT_GAP|LOCK_INSERT_INTENTION)&LOCK_MODE_MASK
899 #if (LOCK_WAIT|LOCK_GAP|LOCK_REC_NOT_GAP|LOCK_INSERT_INTENTION)&LOCK_TYPE_MASK
947 #define lock_mutex_enter_nowait() mutex_enter_nowait(&lock_sys->mutex)
950 #define lock_mutex_own() mutex_own(&lock_sys->mutex)
953 #define lock_mutex_enter() do { \
954 mutex_enter(&lock_sys->mutex); \
958 #define lock_mutex_exit() do { \
959 mutex_exit(&lock_sys->mutex); \
963 #define lock_wait_mutex_own() mutex_own(&lock_sys->wait_mutex)
966 #define lock_wait_mutex_enter() do { \
967 mutex_enter(&lock_sys->wait_mutex); \
971 #define lock_wait_mutex_exit() do { \
972 mutex_exit(&lock_sys->wait_mutex); \