|
|
@ -48,7 +48,6 @@ |
|
|
|
#include <time.h> |
|
|
|
#include <time.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <pthread.h> |
|
|
|
#include <endian.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "mdb.h" |
|
|
|
#include "mdb.h" |
|
|
|
|
|
|
|
|
|
|
@ -93,8 +92,12 @@ typedef struct MDB_rxbody { |
|
|
|
} MDB_rxbody; |
|
|
|
} MDB_rxbody; |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CACHELINE |
|
|
|
#ifndef CACHELINE |
|
|
|
|
|
|
|
# ifdef __APPLE__ |
|
|
|
|
|
|
|
# define CACHELINE 128 /* 64 is too small to contain a mutex */ |
|
|
|
|
|
|
|
# else |
|
|
|
# define CACHELINE 64 /* most CPUs. Itanium uses 128 */ |
|
|
|
# define CACHELINE 64 /* most CPUs. Itanium uses 128 */ |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
typedef struct MDB_reader { |
|
|
|
typedef struct MDB_reader { |
|
|
|
RXBODY; |
|
|
|
RXBODY; |
|
|
|