add missing include
[awesomized/libmemcached] / src / bin / memaslap / ms_thread.h
index 6ae1bb7bcbdea5dfb681fbd7d8a41ca5cf01b622..3c49c56fb8b1f78d471f88cc1006052441ea8369 100644 (file)
@@ -16,6 +16,7 @@
 #ifndef MS_THREAD_H
 #define MS_THREAD_H
 
+#include <pthread.h>
 #include <sched.h>
 #include "ms_conn.h"
 
@@ -33,6 +34,7 @@ typedef struct thread_ctx {
   uint32_t srv_idx;         /* index of the thread */
   int tps_perconn;          /* expected throughput per connection */
   int64_t exec_num_perconn; /* execute number per connection */
+  pthread_t pth_id;
 } ms_thread_ctx_t;
 
 /* Used to store the private variables of each thread */