mirror of
https://github.com/CDevJoud/Minecraft-Community-Edition.git
synced 2026-07-16 05:20:56 +00:00
added getQueueSize() to help not flooding the event system
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -123,6 +123,7 @@ namespace mce {
|
||||
*/
|
||||
void stop();
|
||||
|
||||
size_t getQueueSize() const;
|
||||
/**
|
||||
* @brief Destructor.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user