Commit bf1584c7 authored by tqcq's avatar tqcq
Browse files

fix event_bus_test

parent 35e01dcc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -148,6 +148,8 @@ public:
        }
    }

    EventBus *operator->() { return this; }

private:
    sled::Mutex mutex_;
    std::unordered_map<std::type_index, std::function<void(EventBus *)>> cleanup_handlers_ GUARDED_BY(mutex_);
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ TEST_SUITE("EventBus")
            std::atomic<int> &data;
        };

        struct AotmicEventSubscriber : public sled::EventBus::Subscriber {
        struct AotmicEventSubscriber : public sled::EventBus::Subscriber<> {
            virtual ~AotmicEventSubscriber() = default;

            void OnEvent(AtomicEvent event) { event.data.fetch_add(1); }