Files
mongo/test/thread/thread.h
2012-01-31 10:38:15 +11:00

43 lines
944 B
C

/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2008-2011 WiredTiger, Inc.
* All rights reserved.
*/
#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wiredtiger.h>
#define FNAME "file:__wt" /* File name */
#define FNAME_STAT "__stats" /* File name for statistics */
#define UNUSED(v) (void)(v) /* Quiet unused var warnings */
extern WT_CONNECTION *conn; /* WiredTiger connection */
typedef enum { FIX, ROW, VAR } __ftype; /* File type */
extern __ftype ftype;
extern u_int nkeys; /* Keys to load */
extern u_int nops; /* Operations per thread */
#if defined (__GNUC__)
void die(const char *, int) __attribute__((noreturn));
#else
void die(const char *, int);
#endif
void load(void);
int run(int, int);
void stats(void);