mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
callback
This commit is contained in:
13
src/Class/AsyncActions.cpp
Normal file
13
src/Class/AsyncActions.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "Class/AsyncActions.h"
|
||||
|
||||
AsyncActions::AsyncActions(){};
|
||||
|
||||
void AsyncActions::loop() {
|
||||
count++;
|
||||
if (count > 5000) {
|
||||
if(_cb) _cb; //что означает эта запись? это и есть вызов callback?
|
||||
count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
AsyncActions* async;
|
||||
Reference in New Issue
Block a user