projects
/
trackerpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add worker thread
[trackerpp.git]
/
main.cpp
diff --git
a/main.cpp
b/main.cpp
index
bfc076d
..
577c3fc
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-9,13
+9,18
@@
using namespace suanzi;
class Callback : public EngineObserver
{
class Callback : public EngineObserver
{
- void onPersonIn(Person& p){
- LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
-
+ void onPersonsIn(const std::vector<Person>& p){
+ LOG_DEBUG(TAG, "onPersonsIn");
+ for (const auto& i : p){
+ LOG_DEBUG(TAG, "OnPersonIn " << i.toString());
+ }
};
};
- void onPersonOut(Person& p) {
- LOG_DEBUG(TAG, "OnPersonIn " << p.toString())
+ void onPersonsOut(const std::vector<Person>& p) {
+ LOG_DEBUG(TAG, "onPersonsOut");
+ for (const auto& i : p){
+ LOG_DEBUG(TAG, "OnPersonOut " << i.toString());
+ }
};
};
};
};