Skip to content

Commit

Permalink
winusb: Px4Receiver が T0 -> T1 の順序で Open されるように map を使う
Browse files Browse the repository at this point in the history
  • Loading branch information
ankoski committed Jul 8, 2023
1 parent 0733406 commit c1ffdee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winusb/src/DriverHost_PX4/receiver_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma once

#include <shared_mutex>
#include <unordered_map>
#include <map>

#include "command.hpp"
#include "receiver_base.hpp"
Expand Down Expand Up @@ -38,7 +38,7 @@ class ReceiverManager final {
bool GenerateDataId(px4::ReceiverBase *receiver, std::uint32_t &data_id);

std::shared_mutex mtx_;
std::unordered_map<px4::ReceiverBase*, ReceiverData> data_;
std::map<px4::ReceiverBase*, ReceiverData> data_;
};

} // namespace px4

0 comments on commit c1ffdee

Please sign in to comment.