Skip to content

Commit

Permalink
[agent] add mainloop poll timeout config (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukepo authored Oct 28, 2024
1 parent 952fc6a commit d052d91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/agent/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@

namespace otbr {

#ifndef OTBR_MAINLOOP_POLL_TIMEOUT_SEC
#define OTBR_MAINLOOP_POLL_TIMEOUT_SEC 10
#endif

std::atomic_bool Application::sShouldTerminate(false);
const struct timeval Application::kPollTimeout = {10, 0};
const struct timeval Application::kPollTimeout = {OTBR_MAINLOOP_POLL_TIMEOUT_SEC, 0};

Application::Application(const std::string &aInterfaceName,
const std::vector<const char *> &aBackboneInterfaceNames,
Expand Down

0 comments on commit d052d91

Please sign in to comment.