Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/libmysql_std/include/thr_lock.h
#include <my_pthread.h>
#include <my_list.h>

Ir al código fuente de este archivo.

Clases

struct  st_thr_lock_info
struct  st_thr_lock_owner
struct  st_thr_lock_data
struct  st_lock_list
struct  st_thr_lock

'defines'

#define thr_lock_owner_init(owner, info_arg)   (owner)->info= (info_arg)

'typedefs'

typedef struct st_thr_lock_info THR_LOCK_INFO
typedef struct st_thr_lock_owner THR_LOCK_OWNER
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
}
enum  enum_thr_lock_result { THR_LOCK_SUCCESS = 0, THR_LOCK_ABORTED = 1, THR_LOCK_WAIT_TIMEOUT = 2, THR_LOCK_DEADLOCK = 3 }

Funciones

my_bool init_thr_lock (void)
void thr_lock_info_init (THR_LOCK_INFO *info)
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)
enum enum_thr_lock_result thr_lock (THR_LOCK_DATA *data, THR_LOCK_OWNER *owner, enum thr_lock_type lock_type)
void thr_unlock (THR_LOCK_DATA *data)
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_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
ulong table_lock_wait_timeout
my_bool thr_lock_inited
enum thr_lock_type thr_upgraded_concurrent_insert_lock
LISTthr_lock_thread_list
pthread_mutex_t THR_LOCK_lock

Documentación de los 'defines'

#define thr_lock_owner_init (   owner,
  info_arg 
)    (owner)->info= (info_arg)

Documentación de los 'typedefs'

typedef struct st_thr_lock THR_LOCK

Documentación de las enumeraciones

Valores de enumeraciones:
THR_LOCK_SUCCESS 
THR_LOCK_ABORTED 
THR_LOCK_WAIT_TIMEOUT 
THR_LOCK_DEADLOCK 
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

my_bool init_thr_lock ( void  )
void thr_abort_locks ( THR_LOCK lock)
my_bool thr_abort_locks_for_thread ( THR_LOCK lock,
pthread_t  thread 
)
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 
)
void thr_lock_delete ( THR_LOCK lock)
void thr_lock_info_init ( THR_LOCK_INFO info)
void thr_lock_init ( THR_LOCK lock)
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)

Documentación de las variables

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'