]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_memcfg.h
timer: fix resource leak in finalize
[dpdk.git] / lib / librte_eal / common / eal_memcfg.h
index 030f903adc0c333ffc4b1c1f77e2d8ead438ada1..359beb216876c7ae36c768a982068e75ae433542 100644 (file)
@@ -11,6 +11,7 @@
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_pause.h>
+#include <rte_spinlock.h>
 #include <rte_rwlock.h>
 #include <rte_tailq.h>
 
@@ -36,6 +37,7 @@ struct rte_mem_config {
        rte_rwlock_t mlock;   /**< used by memzones for thread safety. */
        rte_rwlock_t qlock;   /**< used by tailqs for thread safety. */
        rte_rwlock_t mplock;  /**< used by mempool library for thread safety. */
+       rte_spinlock_t tlock; /**< used by timer library for thread safety. */
 
        rte_rwlock_t memory_hotplug_lock;
        /**< Indicates whether memory hotplug request is in progress. */