* sample(DBLogger): New sample to demonstrate DB logging to a file. (#4750)
* sample(DBLogger): Create messages via SQL logger in a thread (#4750)
* sample(DBLogger): Save messages from SQL files to an SQL database (works with SQLite) (#4750)
* chore(Makefile): Data samples depend on PocoUtil (#4750)
* sample(DBLogger): Refactored DBLogger with std::filesystem::directory_iterator and std::thread.
* sample(DBLogger): Add missing include <condition_variable>
* sample(DBLogger): Extracted log scanning and inserting functionality to class SQLLogInserter.
* sample(DBLogger): Create new logging table only when using demo messages option.
* feat(DBLogger): VS projects
* sample(DBLogger): Acquire options from configuration file.
* feat(DBLogger): regenerate VS projects (progen file change)
* sample(DBLogger): Add example DBLogger.properties file.
* sample(DBLogger): Process as much as possible when stopping processing.
* sample(DBLogger): Meaningful defaults in properties file.
* sample(DBLogger): Verify validity of database session on startup.
* sample(DBLogger): Configure demo SQL channel in properties file.
* chore(DBLogger): style and warnings
---------
Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
Co-authored-by: Alex Fabijanic <alex@pocoproject.org>
Activity _running flag is now set to false when the activity finishes or throws, previously it was only set if wait had been called. Added test for this scenario
* fix(NamedEvent): Release semaphore ID in dtor when created with semget (#2971)
* Temporary: trying to solve for non-Linux semaphores.
* chore(NamedEvent): Cleanup of Posix NamedEvent and fixes of unit test.
* add RWLock implementation for file [posix]
* add implementation FileStreamRWLock for windows
replace FileStreamRWLock to the Process package
* add files FileStreamRWLock* into makefile and vcproj
* remove unnecessary file from makefile
* use absolute path to the TesApp with ProcessRunner
* fix vc*.proj
* add new test files into vc.proj.filters
* fix comments
* fix spelling fo PR #4723
add atomic_bool _locked and check if FileStreamRWLock is locked on
destruction for force unlock
* add atomic header
* File lock (#4740)
* throw error on any errno not only on EDEADLK
* fix function naming
* fix windows build
* fix windows build
---------
Co-authored-by: Alexander B <ale.bychuk@gmail.com>
Co-authored-by: bas524 <bas524@ya.ru>
* chore(Trace): add dev env settings
* add(Trace): init add Poco::trace and libbacktrace files
* feat(Exception): generate stack trace if enabled at compile time
* chore(DNSSD): remove binaries from git
* fix(Trace): build
* chore(ci): exclude exception text tests for trace build; add debug test script params
* chore(build): mac (dl)
* chore(cmake): Changes to build Trace with CMake.
* chore(cmake): Changes to build Trace on Windows
* chore(cmake): Improvements to include trace sample.
* chore(cmake): Fixes to properly build/link Trace on Linux
* chore(cmake): add_definitions --> add_compile_definitions
* chore(cmake): Build Trace as static and don't export it.
* chore(make): Link Trace with built-in libbacktrace on Linux
* chore(Trace): remove unnecessary sources for libbacktrace.
* chore(github): enable trace on a few github checks
* chore(cmake): Build Trace with clang++ on Linux.
* chore(cmake): Properly set POCO_ENABLE_TRACE globally when needed.
* fix(cmake): Trace: corrected include for clang on Linux
---------
Co-authored-by: Matej Kenda <matejken@gmail.com>
* foundation: Remove unused ucp.h
Nothing use this and it is not even included in Visual Studio project
files. Remove it so it will not confuse any more.
* foundation: Hide zlib from user
Hide zlib completly from user. This way we do not need to publish zlib.h
or zconfig.h.
As we now have two different pointer initalizing in constructor I choose
to use unique pointers so it is more obvious those are safe. I also
choose to use make_unique which default initalize z_stream_t. This makes
code more readable as we do not need to specifie every field of
z_stream_t. It really should not matter much if we initialize couple
field for nothing. If does we should add comment about that. Still
keeping _buffer without inializing as it is quite big.
* xml: Hide expat and ParserEngine from user
Hide expat completly from user. This way we do not need to publish
expat.h or expat_external.h.
I move also headers to orignal locations so diff is smaller compared to
original.
* chore(Foundation): Compression level constants
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
* Poco::DateTime uses assertions for validation #1540
* fix(DateTime): fix ASAN buf overflow
* fix(DateTime): allow negative year (TODO: 0 Julian day Gregorian year value)