base: Transition CP annotate to use shared_ptr
[gem5.git] / src / sim / eventq.hh
index e238785f67c527a7437e9f8c14e9c4f45a6fe1df..c390d2155c8bd70e6823b17d6bdd85b49b63c26d 100644 (file)
@@ -42,6 +42,7 @@
 #include <cassert>
 #include <climits>
 #include <iosfwd>
+#include <memory>
 #include <mutex>
 #include <string>
 
@@ -448,7 +449,7 @@ class EventQueue : public Serializable
     Tick _curTick;
 
     //! Mutex to protect async queue.
-    std::mutex *async_queue_mutex;
+    std::mutex async_queue_mutex;
 
     //! List of events added by other threads to this event queue.
     std::list<Event*> async_queue;