Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing committed May 15, 2024
1 parent 9b91818 commit bbda886
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/lit-icd-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@
using namespace chip;
using namespace chip::app;

int inotifyWatchFd = -1;

pid_t selfPid = 0;

void ApplicationInit() {}

void ApplicationShutdown() {}

void IcdWatchThread()
void ICDNotifierThread()
{

while (true) {
sleep(10);
PlatformMgr().ScheduleWork([](intptr_t) { ICDNotifier::GetInstance().NotifyNetworkActivityNotification(); });
}
}

int main(int argc, char * argv[])
{
self_pid = getpid();

VerifyOrDie(ChipLinuxAppInit(argc, argv) == 0);

std::thread icdNotifierThread(ICDNotifierThread);

ChipLinuxAppMainLoop();
return 0;
}
Expand Down

0 comments on commit bbda886

Please sign in to comment.