mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
Add ProcessRunner and PIDFile (#4225)
* feat(Foundation): PIDFile and ProcessRunner #4064 * feat(Thread): optional signal blocking on POSIX #2978 * fix(ProcessRunner):remove logger, code enhancement #4225 * feat(Foundation): add PIDFile and ProcessRunner Tests #4064 * fix(Foundation): failing ProcessRunner Test #4064 * fix(PIDFile): remove append argument #4064 * remove Windows TODO from ProcessRunner #4064 * feat(ProcessRunnerTest): add line to checkTimeout #4064 * fix(ProcessRunner): add done flag to run() #4064 * fix(ProcessRunnerTest): add missing pidFile argument #4064 * chore(ProcessRunner): remove comments #4064 * fix(ProcessRunner): add runCount flag #4064 * fix(test): SharedLibrary and Class tests paths * fix(ProcessRunner): thread sanitizer reported data races #4064 * fix(build): pass env var to testrunner #4064 * chore(PIDFile): remove ; in comments #4064 * feat(ProcessRunner): add Win argument format #4064 * fix(Tests): add ProcessRunnerTest to vcxproj #4064 * fix(Tests): change path to TestApp #4064 * feat(Tests): windows processrunner tests #4064 * fix(Tests): duplicate ProcessRunnerTest in TestSuite vcxproj #4064 * fix(CodeQL): sw declaration hides variable #4064 * fix test binaries path for cmake * fix(Build): missing include/PIDFile.h buildWin #4064 * fix(Build): add PocoFoundation depend in buildWin #4064 * feat(ProcessRunner): test process launching multiple threads #2976 --------- Co-authored-by: Pavle <pavle@debian-gnu-linux-11.localdomain> Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
This commit is contained in:
@@ -74,11 +74,23 @@ public:
|
||||
POLICY_DEFAULT = POLICY_DEFAULT_IMPL
|
||||
};
|
||||
|
||||
Thread();
|
||||
Thread(uint32_t sigMask = 0);
|
||||
/// Creates a thread. Call start() to start it.
|
||||
///
|
||||
/// The optional sigMask parameter specifies which signals should be blocked.
|
||||
/// To block a specific signal, set the corresponding bit in the sigMask.
|
||||
/// Multiple bits can be set in the mask to block multiple signals if needed.
|
||||
///
|
||||
/// Available on POSIX platforms only
|
||||
|
||||
Thread(const std::string& name);
|
||||
Thread(const std::string& name, uint32_t sigMask = 0);
|
||||
/// Creates a named thread. Call start() to start it.
|
||||
///
|
||||
/// The optional sigMask parameter specifies which signals should be blocked.
|
||||
/// To block a specific signal, set the corresponding bit in the sigMask.
|
||||
/// Multiple bits can be set in the mask to block multiple signals if needed.
|
||||
///
|
||||
/// Available on POSIX platforms only
|
||||
|
||||
~Thread();
|
||||
/// Destroys the thread.
|
||||
|
||||
Reference in New Issue
Block a user