IDZEBRA
2.2.7
|
#include <assert.h>
#include <stdlib.h>
#include <yaz/test.h>
#include <yaz/log.h>
#include <time.h>
#include <fcntl.h>
#include <idzebra/flock.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | NUM_THREADS 100 |
Functions | |
static void | small_sleep (void) |
void * | run_func (void *arg) |
static void | tst_thread (int num, int write_flag) |
static void | tst (void) |
void | fork_tst (void) |
int | main (int argc, char **argv) |
Variables | |
static char | seq [1000] |
static char * | seqp = 0 |
int | test_fd = 0 |
#define NUM_THREADS 100 |
Definition at line 65 of file tstflock.c.
void fork_tst | ( | void | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 242 of file tstflock.c.
References fork_tst(), O_BINARY, test_fd, and zebra_flock_init().
void* run_func | ( | void * | arg | ) |
Definition at line 98 of file tstflock.c.
References seqp, small_sleep(), test_fd, zebra_lock_create(), zebra_lock_destroy(), zebra_lock_r(), zebra_lock_w(), and zebra_unlock().
Referenced by tst_thread().
|
static |
Definition at line 74 of file tstflock.c.
Referenced by run_func().
|
static |
Definition at line 197 of file tstflock.c.
References seq, and tst_thread().
Referenced by fork_tst().
|
static |
Definition at line 149 of file tstflock.c.
References NUM_THREADS, run_func(), seq, and seqp.
Referenced by tst().
|
static |
Definition at line 62 of file tstflock.c.
Referenced by tst(), and tst_thread().
|
static |
Definition at line 63 of file tstflock.c.
Referenced by run_func(), and tst_thread().
int test_fd = 0 |
Definition at line 72 of file tstflock.c.
Referenced by main(), and run_func().