projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Added missing constant.
[m6w6/libmemcached]
/
clients
/
ms_memslap.h
diff --git
a/clients/ms_memslap.h
b/clients/ms_memslap.h
index 0b9cc29e2cea1d65a8ebd32e4ab845429c62a305..dc0844d82ff2496eb03ca86a61fea5f59d9784cd 100644
(file)
--- a/
clients/ms_memslap.h
+++ b/
clients/ms_memslap.h
@@
-19,7
+19,9
@@
#include <unistd.h>
#include <stdint.h>
#include <pthread.h>
#include <unistd.h>
#include <stdint.h>
#include <pthread.h>
-#include <stdbool.h>
+#if !defined(__cplusplus)
+# include <stdbool.h>
+#endif
#include <math.h>
#include "ms_stats.h"
#include <math.h>
#include "ms_stats.h"
@@
-69,7
+71,7
@@
typedef struct statistic
/* global status statistic structure */
typedef struct stats
{
/* global status statistic structure */
typedef struct stats
{
- volatile int32_t active_conns; /* active connections */
+ volatile
u
int32_t active_conns; /* active connections */
size_t bytes_read; /* read bytes */
size_t bytes_written; /* written bytes */
size_t obj_bytes; /* object bytes */
size_t bytes_read; /* read bytes */
size_t bytes_written; /* written bytes */
size_t obj_bytes; /* object bytes */
@@
-90,7
+92,7
@@
typedef struct stats
/* lock adapter */
typedef struct sync_lock
{
/* lock adapter */
typedef struct sync_lock
{
-
in
t count;
+
uint32_
t count;
pthread_mutex_t lock;
pthread_cond_t cond;
} ms_sync_lock_t;
pthread_mutex_t lock;
pthread_cond_t cond;
} ms_sync_lock_t;
@@
-100,6
+102,7
@@
typedef struct global
{
/* synchronize lock */
ms_sync_lock_t init_lock;
{
/* synchronize lock */
ms_sync_lock_t init_lock;
+ ms_sync_lock_t warmup_lock;
ms_sync_lock_t run_lock;
/* mutex for outputing error log synchronously when memslap crashes */
ms_sync_lock_t run_lock;
/* mutex for outputing error log synchronously when memslap crashes */