Reviewing merge request #151: Implemented clean shutdown

Implements #48

All threads and threaded subsystems will be properly shut down on SIGINT and SIGTERM signals.

Commits that would be merged:

Version 2
  • Version 1
  • Version 2
  • 888ca67
  • 44200bf
  • Removed forgotten debug printfs

  • 7df6633
  • First version of clean shutdown

  • 7aaf954
  • Fixed a problem with thread names

  • f6b00c1
  • Made subsystem name == thread name

  • 8453872
  • Rework according to Patricks suggestions.

  • 65f7e21
  • Lowered soap accept timeout from 4 to 2 seconds

Showing 888ca67-44200bf

Comments

+     std::string &getThreadIdentifier() { return m_Name; }

I'd add a const before std::string to avoid modification of the thread-identifier. And the & should stick to std::string.

+     bool m_shutdownFlag;

Shouldn’t that variable be named m_ShutdownFlag?

+     virtual void cleanup() {}

As far as I can see this function’s only used by BonjourHandler. I'd implement a specialized function in this class rather than include a new function in a base-class.

Updated merge request according to above comments.

→ State changed from Open to Closed

Resolved conflicts/merged.

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository