added getQueueSize() to help not flooding the event system

This commit is contained in:
Joud Kandeel
2026-03-06 20:01:45 +01:00
parent 498dadbf7d
commit c44498eade
2 changed files with 5 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ namespace mce {
if (QEventBus::thread.joinable()) QEventBus::thread.join();
}
size_t QEventBus::getQueueSize() const {
return QEventBus::queue.size();
}
QEventBus::~QEventBus() {
QEventBus::stop();
}

View File

@@ -123,6 +123,7 @@ namespace mce {
*/
void stop();
size_t getQueueSize() const;
/**
* @brief Destructor.
*