IDZEBRA
2.2.7
|
#include <yaz/yconfig.h>
Go to the source code of this file.
Typedefs | |
typedef struct zebra_lock_handle * | ZebraLockHandle |
Functions | |
ZebraLockHandle | zebra_lock_create (const char *dir, const char *file) |
void | zebra_lock_destroy (ZebraLockHandle h) |
int | zebra_unlock (ZebraLockHandle h) |
char * | zebra_mk_fname (const char *dir, const char *name) |
int | zebra_lock_w (ZebraLockHandle h) |
int | zebra_lock_r (ZebraLockHandle h) |
void | zebra_flock_init (void) |
typedef struct zebra_lock_handle* ZebraLockHandle |
void zebra_flock_init | ( | void | ) |
Definition at line 380 of file flock.c.
References check_for_linuxthreads(), initialized, lock_list_mutex, log_level, posix_locks, and zebra_mutex_init().
Referenced by main(), and zebra_start_res().
ZebraLockHandle zebra_lock_create | ( | const char * | dir, |
const char * | file | ||
) |
Definition at line 106 of file flock.c.
References zebra_lock_info::fd, zebra_lock_info::file_mutex, zebra_lock_info::fname, initialized, lock_list, lock_list_mutex, log_level, zebra_lock_info::next, zebra_lock_info::no_file_read_lock, zebra_lock_info::no_file_write_lock, O_BINARY, zebra_lock_handle::p, posix_locks, zebra_lock_info::rdwr_lock, zebra_lock_info::ref_count, zebra_lock_handle::write_flag, zebra_lock_rdwr_init(), zebra_mk_fname(), zebra_mutex_init(), zebra_mutex_lock(), and zebra_mutex_unlock().
Referenced by run_func(), and zebra_select_register().
void zebra_lock_destroy | ( | ZebraLockHandle | h | ) |
Definition at line 177 of file flock.c.
References zebra_lock_info::fd, zebra_lock_info::file_mutex, zebra_lock_info::fname, lock_list, lock_list_mutex, log_level, zebra_lock_info::next, zebra_lock_handle::p, posix_locks, zebra_lock_info::rdwr_lock, zebra_lock_info::ref_count, zebra_lock_rdwr_destroy(), zebra_mutex_destroy(), zebra_mutex_lock(), and zebra_mutex_unlock().
Referenced by run_func(), zebra_close(), and zebra_select_register().
int zebra_lock_r | ( | ZebraLockHandle | h | ) |
Definition at line 277 of file flock.c.
References zebra_lock_info::fd, zebra_lock_info::file_mutex, zebra_lock_info::fname, log_level, zebra_lock_info::no_file_read_lock, zebra_lock_info::no_file_write_lock, zebra_lock_handle::p, posix_locks, zebra_lock_info::rdwr_lock, unixLock(), zebra_lock_handle::write_flag, zebra_lock_rdwr_rlock(), zebra_mutex_lock(), and zebra_mutex_unlock().
Referenced by run_func(), zebra_begin_trans(), and zebra_commit_ex().
int zebra_lock_w | ( | ZebraLockHandle | h | ) |
Definition at line 240 of file flock.c.
References zebra_lock_info::fd, zebra_lock_info::file_mutex, zebra_lock_info::fname, log_level, zebra_lock_info::no_file_write_lock, zebra_lock_handle::p, posix_locks, zebra_lock_info::rdwr_lock, unixLock(), zebra_lock_handle::write_flag, zebra_lock_rdwr_wlock(), zebra_mutex_lock(), and zebra_mutex_unlock().
Referenced by run_func(), zebra_begin_trans(), and zebra_commit_ex().
char* zebra_mk_fname | ( | const char * | dir, |
const char * | name | ||
) |
Definition at line 84 of file flock.c.
References zebra_lock_info::fname.
Referenced by zebra_get_state(), zebra_lock_create(), and zebra_set_state().
int zebra_unlock | ( | ZebraLockHandle | h | ) |
Definition at line 313 of file flock.c.
References zebra_lock_info::fd, zebra_lock_info::file_mutex, zebra_lock_info::fname, log_level, zebra_lock_info::no_file_read_lock, zebra_lock_info::no_file_write_lock, zebra_lock_handle::p, posix_locks, zebra_lock_info::rdwr_lock, unixLock(), zebra_lock_handle::write_flag, zebra_lock_rdwr_runlock(), zebra_lock_rdwr_wunlock(), zebra_mutex_lock(), and zebra_mutex_unlock().
Referenced by run_func(), zebra_begin_trans(), zebra_commit_ex(), and zebra_end_transaction().