zoukankan      html  css  js  c++  java
  • 结构体 lock_t;

    typedef struct lock_struct    lock_t; //利用typedef定义一个变量的类型
    
    /** Lock struct */
    struct lock_struct {
        trx_t*        trx;        /*!< transaction owning the lock */
        UT_LIST_NODE_T(lock_t)  trx_locks;    /*!< list of the locks of the transaction */
        ulint        type_mode;   //锁的类型 /*!< lock type, mode, LOCK_GAP or
                                LOCK_REC_NOT_GAP,
                                LOCK_INSERT_INTENTION,
                                wait flag, ORed */
        hash_node_t    hash;        /*!< hash chain node for a record lock */ //typedef void* hash_node_t;
        dict_index_t*    index;        /*!< index for a record lock */
        union {
            lock_table_t    tab_lock;    /*!< table lock */
            lock_rec_t    rec_lock;     /*!< record lock */
        } un_member;                  /*!< lock details */
    };
  • 相关阅读:
    NOI2021 题解
    CF605E Intergalaxy Trips
    P4762 [CERC2014]Virus synthesis
    特征向量与特征值
    uoj
    NOI 2021
    [NOI2011] NOI 嘉年华 【DP】
    CF1264D(组合数)
    绝对不咕
    题解 SP11985 【GOT
  • 原文地址:https://www.cnblogs.com/taek/p/4936249.html
Copyright © 2011-2022 走看看