#include <my_pthread.h>
#include <my_list.h>
Ir al código fuente de este archivo.
Clases |
struct | st_thr_lock_data |
struct | st_lock_list |
struct | st_thr_lock |
'typedefs' |
typedef struct st_thr_lock_data | THR_LOCK_DATA |
typedef struct st_thr_lock | THR_LOCK |
Enumeraciones |
enum | thr_lock_type {
TL_IGNORE = -1,
TL_UNLOCK,
TL_READ,
TL_READ_WITH_SHARED_LOCKS,
TL_READ_HIGH_PRIORITY,
TL_READ_NO_INSERT,
TL_WRITE_ALLOW_WRITE,
TL_WRITE_ALLOW_READ,
TL_WRITE_CONCURRENT_INSERT,
TL_WRITE_DELAYED,
TL_WRITE_DEFAULT,
TL_WRITE_LOW_PRIORITY,
TL_WRITE,
TL_WRITE_ONLY,
TL_IGNORE = -1,
TL_UNLOCK,
TL_READ,
TL_READ_WITH_SHARED_LOCKS,
TL_READ_HIGH_PRIORITY,
TL_READ_NO_INSERT,
TL_WRITE_ALLOW_WRITE,
TL_WRITE_ALLOW_READ,
TL_WRITE_CONCURRENT_INSERT,
TL_WRITE_DELAYED,
TL_WRITE_LOW_PRIORITY,
TL_WRITE,
TL_WRITE_ONLY
} |
Funciones |
my_bool | init_thr_lock (void) |
void | thr_lock_init (THR_LOCK *lock) |
void | thr_lock_delete (THR_LOCK *lock) |
void | thr_lock_data_init (THR_LOCK *lock, THR_LOCK_DATA *data, void *status_param) |
int | thr_lock (THR_LOCK_DATA *data, enum thr_lock_type lock_type) |
void | thr_unlock (THR_LOCK_DATA *data) |
int | thr_multi_lock (THR_LOCK_DATA **data, uint count) |
void | thr_multi_unlock (THR_LOCK_DATA **data, uint count) |
void | thr_abort_locks (THR_LOCK *lock) |
my_bool | thr_abort_locks_for_thread (THR_LOCK *lock, pthread_t thread) |
void | thr_print_locks (void) |
my_bool | thr_upgrade_write_delay_lock (THR_LOCK_DATA *data) |
my_bool | thr_reschedule_write_lock (THR_LOCK_DATA *data) |
Variables |
ulong | locks_immediate |
ulong | locks_waited |
ulong | max_write_lock_count |
my_bool | thr_lock_inited |
enum thr_lock_type | thr_upgraded_concurrent_insert_lock |
LIST * | thr_lock_thread_list |
pthread_mutex_t | THR_LOCK_lock |
Documentación de los 'typedefs'
Documentación de las enumeraciones
- Valores de enumeraciones:
TL_IGNORE |
|
TL_UNLOCK |
|
TL_READ |
|
TL_READ_WITH_SHARED_LOCKS |
|
TL_READ_HIGH_PRIORITY |
|
TL_READ_NO_INSERT |
|
TL_WRITE_ALLOW_WRITE |
|
TL_WRITE_ALLOW_READ |
|
TL_WRITE_CONCURRENT_INSERT |
|
TL_WRITE_DELAYED |
|
TL_WRITE_DEFAULT |
|
TL_WRITE_LOW_PRIORITY |
|
TL_WRITE |
|
TL_WRITE_ONLY |
|
TL_IGNORE |
|
TL_UNLOCK |
|
TL_READ |
|
TL_READ_WITH_SHARED_LOCKS |
|
TL_READ_HIGH_PRIORITY |
|
TL_READ_NO_INSERT |
|
TL_WRITE_ALLOW_WRITE |
|
TL_WRITE_ALLOW_READ |
|
TL_WRITE_CONCURRENT_INSERT |
|
TL_WRITE_DELAYED |
|
TL_WRITE_LOW_PRIORITY |
|
TL_WRITE |
|
TL_WRITE_ONLY |
|
Documentación de las funciones
void thr_print_locks |
( |
void |
| ) |
|
Documentación de las variables