The world's most popular open source database
#include <my_pthread.h>#include <my_list.h>Include dependency graph for thr_lock.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
| #define thr_lock_owner_init | ( | owner, | |||
| info_arg | ) | (owner)->info= (info_arg) |
| typedef struct st_thr_lock THR_LOCK |
| typedef struct st_thr_lock_data THR_LOCK_DATA |
| typedef struct st_thr_lock_info THR_LOCK_INFO |
| typedef struct st_thr_lock_owner THR_LOCK_OWNER |
| enum enum_thr_lock_result |
Definition at line 65 of file thr_lock.h.
00065 { THR_LOCK_SUCCESS= 0, THR_LOCK_ABORTED= 1, 00066 THR_LOCK_WAIT_TIMEOUT= 2, THR_LOCK_DEADLOCK= 3 };
| enum thr_lock_type |
Definition at line 31 of file thr_lock.h.
00031 { TL_IGNORE=-1, 00032 TL_UNLOCK, /* UNLOCK ANY LOCK */ 00033 TL_READ, /* Read lock */ 00034 TL_READ_WITH_SHARED_LOCKS, 00035 /* High prior. than TL_WRITE. Allow concurrent insert */ 00036 TL_READ_HIGH_PRIORITY, 00037 /* READ, Don't allow concurrent insert */ 00038 TL_READ_NO_INSERT, 00039 /* 00040 Write lock, but allow other threads to read / write. 00041 Used by BDB tables in MySQL to mark that someone is 00042 reading/writing to the table. 00043 */ 00044 TL_WRITE_ALLOW_WRITE, 00045 /* 00046 Write lock, but allow other threads to read. 00047 Used by ALTER TABLE in MySQL to allow readers 00048 to use the table until ALTER TABLE is finished. 00049 */ 00050 TL_WRITE_ALLOW_READ, 00051 /* 00052 WRITE lock used by concurrent insert. Will allow 00053 READ, if one could use concurrent insert on table. 00054 */ 00055 TL_WRITE_CONCURRENT_INSERT, 00056 /* Write used by INSERT DELAYED. Allows READ locks */ 00057 TL_WRITE_DELAYED, 00058 /* WRITE lock that has lower priority than TL_READ */ 00059 TL_WRITE_LOW_PRIORITY, 00060 /* Normal WRITE lock */ 00061 TL_WRITE, 00062 /* Abort new lock request with an error */ 00063 TL_WRITE_ONLY};
| my_bool init_thr_lock | ( | void | ) |
Referenced by handle_delayed_insert(), init_event_thread(), and init_server_components().
Here is the caller graph for this function:

| void thr_downgrade_write_lock | ( | THR_LOCK_DATA * | data, | |
| enum thr_lock_type | new_lock_type | |||
| ) |
| enum enum_thr_lock_result thr_lock | ( | THR_LOCK_DATA * | data, | |
| THR_LOCK_OWNER * | owner, | |||
| enum thr_lock_type | lock_type | |||
| ) |
| void thr_lock_data_init | ( | THR_LOCK * | lock, | |
| THR_LOCK_DATA * | data, | |||
| void * | status_param | |||
| ) |
Referenced by heap_open(), ha_example::open(), ha_tina::open(), ha_blackhole::open(), and ha_archive::open().
Here is the caller graph for this function:

| void thr_lock_delete | ( | THR_LOCK * | lock | ) |
Referenced by ha_blackhole::close(), free_share(), ha_archive::free_share(), get_share(), hp_free(), and mi_close().
Here is the caller graph for this function:

| void thr_lock_info_init | ( | THR_LOCK_INFO * | info | ) |
| void thr_lock_init | ( | THR_LOCK * | lock | ) |
Referenced by get_share(), ha_archive::get_share(), and ha_blackhole::open().
Here is the caller graph for this function:

| enum enum_thr_lock_result thr_multi_lock | ( | THR_LOCK_DATA ** | data, | |
| uint | count, | |||
| THR_LOCK_OWNER * | owner | |||
| ) |
| void thr_multi_unlock | ( | THR_LOCK_DATA ** | data, | |
| uint | count | |||
| ) |
| void thr_print_locks | ( | void | ) |
| my_bool thr_reschedule_write_lock | ( | THR_LOCK_DATA * | data | ) |
| void thr_unlock | ( | THR_LOCK_DATA * | data | ) |
| my_bool thr_upgrade_write_delay_lock | ( | THR_LOCK_DATA * | data | ) |
| pthread_mutex_t THR_LOCK_lock |
Referenced by display_table_locks().
Referenced by display_table_locks().
Referenced by get_one_option().
1.4.7

