Commit Graph

  • 74ac065dda Merge pull request #39 from AntelopeIO/init-signal-handling main Kevin Heifner 2025-01-28 06:05:13 -06:00
  • bbd74cc597 Update comment Kevin Heifner 2025-01-27 19:15:24 -06:00
  • 1f2a9e6432 Handle signals during plugin_initialize. No longer handle SIGHUP during startup. Kevin Heifner 2025-01-27 17:59:44 -06:00
  • 2546dbcfde Merge pull request #38 from AntelopeIO/cmake_min_bump Matt Witherspoon 2025-01-08 15:58:11 -05:00
  • 3f7a58cff4 opt in to cmake policies through 3.31 to silence cmake warning Matt Witherspoon 2025-01-07 22:31:34 -05:00
  • 8acd515d2a Merge pull request #37 from AntelopeIO/call-stop-once Kevin Heifner 2024-12-17 14:02:36 -06:00
  • 771553e5f1 Only call stop_executor_cb once on signal Kevin Heifner 2024-12-17 08:31:06 -06:00
  • 0b2f151bea Merge pull request #36 from AntelopeIO/signal-thread Kevin Heifner 2024-11-05 15:22:26 -06:00
  • 5e09479dde Always handle signals, except SIGHUP, on a different thread Kevin Heifner 2024-10-31 13:50:10 -05:00
  • 13090992fe Merge pull request #34 from AntelopeIO/clean-shutdown Kevin Heifner 2024-10-21 09:52:34 -05:00
  • 24d85e1883 Rename setup_signal_handling_on_ios to setup_signal_handling_on_ioc Kevin Heifner 2024-10-17 07:16:34 -05:00
  • 284bcd8135 Use io_context as io_service is old deprecated name Kevin Heifner 2024-10-16 19:06:27 -05:00
  • c719ef2b4c Add a make_timer method Kevin Heifner 2024-10-15 11:16:15 -05:00
  • d1cf9fce21 Call quit() so is_quitting is set Kevin Heifner 2024-10-14 13:20:45 -05:00
  • 71ed3d728c Drain the io_context instead of destroying it Kevin Heifner 2024-10-14 09:35:09 -05:00
  • 454a161256 Add include Kevin Heifner 2024-09-30 14:31:54 -05:00
  • fd7cf035f7 Add includes Kevin Heifner 2024-09-30 13:34:51 -05:00
  • 6bfc1be92e Destroy io_context after plugin shutdown to clear it out before plugin destroy Kevin Heifner 2024-09-30 13:17:32 -05:00
  • da11ec0f28 Move destroy of plugins to after io_context clear. Kevin Heifner 2024-09-27 15:16:23 -05:00
  • d15b6f36f4 Add shutdown test. Thanks to @spoonincode Kevin Heifner 2024-09-27 15:15:09 -05:00
  • 9a0156a605 Clear io_context before destroying plugins Kevin Heifner 2024-09-26 08:07:49 -05:00
  • 9fafe2e2d1 Clear io_context before destroying plugins Kevin Heifner 2024-09-26 07:30:13 -05:00
  • c1f92a5cdd Merge pull request #33 from AntelopeIO/butf_linkage Matt Witherspoon 2024-07-02 10:41:39 -04:00
  • 24c4bc0136 only need Boost::included_unit_test_framework when using submoduled boost Matt Witherspoon 2024-07-01 23:00:24 -04:00
  • ca4f072ee8 proper Boost::unit_test_framework linkage Matt Witherspoon 2024-07-01 17:44:39 -04:00
  • 215bcc9386 Merge pull request #32 from AntelopeIO/missing_plugin_name Lin Huang 2024-05-18 16:46:08 -04:00
  • 601153f4e6 Fix missing plugin name in error message when a plugin fails to initialize Lin Huang 2024-05-18 13:35:28 -04:00
  • d7a7580dd7 Merge pull request #31 from AntelopeIO/dtor_order_40 Matt Witherspoon 2024-03-11 13:51:12 -04:00
  • 7fe91d33fb just use executor() for what get_executor() was doing Matt Witherspoon 2024-03-11 13:27:27 -04:00
  • 7266b2d1cf don't store a executor_t& rather cast on each use Matt Witherspoon 2024-03-07 23:12:23 -05:00
  • 8361298e53 destroy executor after destroying plugins Matt Witherspoon 2024-03-06 22:30:35 -05:00
  • b75b31e14f Merge pull request #23 from AntelopeIO/boost_submodule Gregory Popovitch 2023-07-25 15:06:08 -04:00
  • fe1b3a6cd9 Merge branch 'main' of https://github.com/AntelopeIO/appbase into boost_submodule greg7mdp 2023-07-18 11:25:30 -04:00
  • 2da170ea8c Merge pull request #30 from AntelopeIO/GH-1279-options Kevin Heifner 2023-07-17 17:58:21 -05:00
  • 0f959acba5 Provide access to parsed options Kevin Heifner 2023-07-17 11:54:22 -05:00
  • 005d5a559e Merge pull request #29 from AntelopeIO/gh-672-fix Gregory Popovitch 2023-07-08 13:06:53 -04:00
  • 6316189788 Merge branch 'gh-672-fix' into boost_submodule greg7mdp 2023-07-07 15:42:23 -04:00
  • 2d4538c78f Update comment greg7mdp 2023-07-07 15:40:29 -04:00
  • f9101d6beb Add test as requested in review. greg7mdp 2023-07-07 15:38:20 -04:00
  • 02a08a374a Merge branch 'gh-672-fix' into boost_submodule greg7mdp 2023-07-07 13:27:02 -04:00
  • f078f79ac0 Use targets from boost submodule only if present. greg7mdp 2023-07-06 10:55:44 -04:00
  • 1b08148d8c Undo previous change greg7mdp 2023-07-06 10:18:49 -04:00
  • 2ddf3f8e4f Update find_package() to include all boost components we use. greg7mdp 2023-07-06 09:59:16 -04:00
  • 0a82417e0a Merge branch 'main' of github.com:AntelopeIO/appbase into boost_submodule greg7mdp 2023-07-05 16:26:10 -04:00
  • fce828fb93 Use io_context instead of io_service elmato/use-io-context Matias Romeo 2023-06-15 20:54:20 -03:00
  • 39043bafe2 Remove test that checked that calling app().quit() during startup triggerred shutdown. greg7mdp 2023-06-15 11:58:56 -04:00
  • 73e7a76498 Don't throw when plugin calls `app().quit() during startup. greg7mdp 2023-06-15 11:37:46 -04:00
  • 6f42d8ece3 try removing previous change greg7mdp 2023-06-13 11:52:09 -04:00
  • fa081b40ae Merge pull request #27 from AntelopeIO/consistent_shutdown_when_quit Gregory Popovitch 2023-05-30 18:11:30 -04:00
  • 15db98e495 Small cleanup in tests. greg7mdp 2023-05-30 16:31:36 -04:00
  • ea84f3e824 Consistent shutdown when plugin_startup() fails. greg7mdp 2023-05-26 16:03:24 -04:00
  • 65bb05604e Merge pull request #26 from AntelopeIO/appbase_gh_25 Gregory Popovitch 2023-05-25 13:04:46 -04:00
  • be400afa16 Ensure that plugin_shutdown() is always called. greg7mdp 2023-05-25 10:08:37 -04:00
  • 54cc7fb4f9 Merge pull request #24 from AntelopeIO/huangminghuang/plugin_exception Huang-Ming Huang 2023-05-16 13:58:16 -05:00
  • 3ac341d25f rethrow exception from plugins Huang-Ming Huang 2023-05-16 13:24:47 -05:00
  • b9472c58c8 Update boost component check as per PR comment. greg7mdp 2023-05-08 16:10:37 -04:00
  • 9c57bbbee4 Merge pull request #22 from AntelopeIO/tweaks_ci Matt Witherspoon 2023-05-08 12:51:16 -04:00
  • e785cc75ae rearrange boost dependencies order. greg7mdp 2023-05-05 17:11:47 -04:00
  • 2ca574b5d2 add simple CI Matt Witherspoon 2023-05-05 15:56:25 -04:00
  • 2b2478b09b tweaks for standalone build, build w/ gcc8 & boost 1.67 Matt Witherspoon 2023-05-05 15:55:17 -04:00
  • de302b46ae use boost as submodule greg7mdp 2023-05-05 15:51:54 -04:00
  • c7ce7c2024 Merge pull request #21 from AntelopeIO/huangminghuang/filesystem Huang-Ming Huang 2023-04-13 19:14:45 -05:00
  • c1c108536b remove unused include Huang-Ming Huang 2023-04-13 18:50:38 -05:00
  • 5719d750cc Merge pull request #20 from AntelopeIO/huangminghuang/logconf Huang-Ming Huang 2023-04-11 16:01:15 -05:00
  • 92a1aa2429 use std::cerr Huang-Ming Huang 2023-04-11 15:38:34 -05:00
  • 0e99927a31 check logconf exists Huang-Ming Huang 2023-04-11 15:25:22 -05:00
  • e2dbcc3fb4 Merge pull request #19 from AntelopeIO/huangminghuang/revert-extened-try Huang-Ming Huang 2023-04-11 13:52:27 -05:00
  • 485cfe6f46 Revert "extend the plugin initialization try/catch block" Huang-Ming Huang 2023-04-11 12:16:00 -05:00
  • 33dfada157 Merge pull request #18 from AntelopeIO/poll-opt Kevin Heifner 2023-04-10 09:37:36 -05:00
  • 00e1eafdb3 Merge pull request #17 from AntelopeIO/huangminghuang/boost-version Huang-Ming Huang 2023-04-10 09:33:17 -05:00
  • 7fa1a80d24 Small optimization and comment Kevin Heifner 2023-04-10 07:58:01 -05:00
  • 4c9e70dc01 Merge pull request #15 from AntelopeIO/gh-14 Gregory Popovitch 2023-04-04 18:24:14 -04:00
  • 313669e9c4 update boost version Huang-Ming Huang 2023-04-04 13:45:02 -05:00
  • 06c6806754 Merge pull request #16 from AntelopeIO/huangminghuang/filesystem Huang-Ming Huang 2023-04-04 11:57:39 -05:00
  • 5c834a2999 replace boost::filesystem Huang-Ming Huang 2023-03-28 10:21:53 -05:00
  • ba7f40d22e extend the plugin initialization try/catch block greg7mdp 2023-03-31 09:58:44 -04:00
  • 88198deb02 Improve error message based on PR feedback. greg7mdp 2023-03-31 09:47:11 -04:00
  • 0befd6999b Outpout better diagnostics if a plugin fails to initialize. greg7mdp 2023-03-30 18:52:10 -04:00
  • 8e981ec366 Add pop() add-pop Kevin Heifner 2023-03-11 10:30:46 -06:00
  • fe1e8ae173 Merge pull request #12 from AntelopeIO/external-order Kevin Heifner 2023-03-08 07:01:57 -06:00
  • f221cd8bbc Make Priority a template parameter so it is generic. order greg7mdp 2023-03-07 16:48:39 -05:00
  • 5d3b07ac61 Make order external to priority queue Kevin Heifner 2023-03-07 10:18:53 -06:00
  • 3a41e1e9db Merge pull request #11 from AntelopeIO/init-logging Lin Huang 2023-03-04 14:27:34 -05:00
  • e28019c232 Add optional initialize_logging to initialize so logging is available during initialization Lin Huang 2023-03-04 11:52:16 -05:00
  • 1bfc5d3e44 Merge pull request #10 from AntelopeIO/remove_two_queue_executor Lin Huang 2023-02-21 17:33:18 -05:00
  • dfc224c377 remove two_queue_executor.hpp Lin Huang 2023-02-21 17:31:33 -05:00
  • b916d07ee4 remove two-queue-executor support from appbase. will live in Leap Lin Huang 2023-02-21 16:43:00 -05:00
  • 814ed1e223 move two_queue_executor.hpp to tests directory executor_concept Lin Huang 2023-02-21 14:25:18 -05:00
  • f82ea8be4a Merge pull request #9 from AntelopeIO/executor_concept Gregory Popovitch 2023-02-21 14:18:58 -05:00
  • 3213c413f3 add checks for number of functions executed and correct a comment Lin Huang 2023-02-21 09:28:43 -05:00
  • fd3393fb98 Update comment describing how to use a custom executor. greg7mdp 2023-02-20 21:27:29 -05:00
  • 313c83e92e the priority_queue is only used by the executor. greg7mdp 2023-02-20 18:45:45 -05:00
  • 8f178aae6d Merge branch 'executor_concept' of github.com:AntelopeIO/appbase into executor_concept greg7mdp 2023-02-20 17:58:48 -05:00
  • c3c378178d deprecate app().post() and remove app().get_priority_queue() as requested in code review. greg7mdp 2023-02-20 17:48:19 -05:00
  • 329d0416f8 add two-queue executor support; add corresponding tests Lin Huang 2023-02-20 17:47:48 -05:00
  • a71a4fc484 remove unneeded type and update comment greg7mdp 2023-02-20 12:44:22 -05:00
  • 29d5c291b9 Make application a template <class executor_t> as Kevin suggested. greg7mdp 2023-02-20 12:38:51 -05:00
  • e2dd4f4f30 rearrange #includes to prevent incorrect use of application in .cpp file greg7mdp 2023-02-20 11:53:48 -05:00
  • 3c1fcab623 use executor type from the appbase namespace as suggested by Kevin. greg7mdp 2023-02-20 11:35:59 -05:00
  • 4ff085bcfc remove application_base::post() as suggested by Kevin greg7mdp 2023-02-20 11:09:08 -05:00