mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
API change to faciliate executer to know the number of active callbacks (#7361)
This commit is contained in:
parent
83523c0259
commit
7346754c09
@ -64,7 +64,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
void execute(Args... params) {
|
int execute(Args... params) {
|
||||||
for(auto it = std::begin(callBackEventList); it != std::end(callBackEventList); ) {
|
for(auto it = std::begin(callBackEventList); it != std::end(callBackEventList); ) {
|
||||||
CallBackHandler &handler = *it;
|
CallBackHandler &handler = *it;
|
||||||
if (handler->allowRemove() && handler.unique()) {
|
if (handler->allowRemove() && handler.unique()) {
|
||||||
@ -75,6 +75,7 @@ public:
|
|||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return callBackEventList.size();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user