#include <set>
#include <utility>
-#include "acl_fragmenter.h"
-#include "acl_manager.h"
#include "common/bidi_queue.h"
+#include "hci/acl_fragmenter.h"
#include "hci/controller.h"
#include "hci/hci_layer.h"
connection_pair->second.number_of_sent_packets_ -= credits;
acl_packet_credits_ += credits;
ASSERT(acl_packet_credits_ <= max_acl_packet_credits_);
- start_round_robin();
+ if (acl_packet_credits_ == credits) {
+ start_round_robin();
+ }
}
// Round-robin scheduler
LOG_ERROR("No pending command");
return;
}
-
+ LOG_WARN("Response time out for %s", CommandCodeText(command_just_sent_.command_code_).c_str());
switch (command_just_sent_.command_code_) {
case CommandCode::CONNECTION_REQUEST: {
link_->OnOutgoingConnectionRequestFail(command_just_sent_.source_cid_);
{
std::lock_guard<std::mutex> lock(mutex_);
if (was_cleared()) {
+ LOG_WARN("Posting to a handler which has been cleared");
return;
}
tasks_->emplace(std::move(closure));
template <typename T>
Queue<T>::~Queue() {
- ASSERT(enqueue_.handler_ == nullptr);
- ASSERT(dequeue_.handler_ == nullptr);
+ ASSERT_LOG(enqueue_.handler_ == nullptr, "Enqueue is not unregistered");
+ ASSERT_LOG(dequeue_.handler_ == nullptr, "Dequeue is not unregistered");
};
template <typename T>