Commit Graph

1413 Commits

Author SHA1 Message Date
Miklos Vajna
c39c0aaf9d GH #1050 CppUnit: fix gcc -Wshadow warnings
Also in Foundation tests.
2016-01-11 09:11:46 +01:00
FrancisANDRE
ccf824a806 Merge remote-tracking branch 'pocoproject@github/develop' into PocoCppUnit 2016-01-10 11:57:27 +01:00
Mike Gelfand
0425866486 Allow for process termination when polling with isRunning
On *NIX, one needs to call `waitpid()` in order for process to exit the
zombie state. If one uses `Process::isRunning()` to emulate non-blocking
wait for child process termination, process will stay zombie and function
will always return true.

This commit changes `Process::isRunning()` to call `waitpid()` with
`WNOHANG` instead of using `kill()` when checking for child process (i.e.
the one we have ProcessHandle for), which allows for process termination.
Additional trickery with mutex and event is needed to prevent exceptions
when `Process::isRunning()` and/or `Process::wait()` is called concurrently
on the same handle from different threads.

Fixes #1097.
2016-01-09 02:36:55 +03:00
FrancisANDRE
ce797f7700 Make CppUnit a component of Poco
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-08 00:17:13 +01:00
FrancisANDRE
bc22588895 .bashrc exists only with bash shell while .profile exists always
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2016-01-05 05:20:40 +01:00
Miklos Vajna
12d0699b5b GH #1050 Net: fix gcc -Wshadow warnings 2015-12-29 20:20:48 +01:00
FrancisANDRE
6e97a9f11b Split tests into samples & tests.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-19 17:15:55 +01:00
FrancisANDRE
d927b28b7e Exclude from the Debug build temporarly for AppVeyor stability. To be fixed later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 14:09:07 +01:00
FrancisANDRE
9039ae6b2f Merge remote-tracking branch 'pocoproject@github/develop' into develop
Conflicts:
	buildwin.ps1


Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 12:11:35 +01:00
FrancisANDRE
d15d8a604e Exclude from the Debug build temporarly for AppVeyor stability.To be restored later on.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-13 10:09:25 +01:00
FrancisANDRE
2f3230fdaf use VS macro instead of hard literal.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 19:20:23 +01:00
FrancisANDRE
3f1b573b04 No 'd' suffix for TestApp whatever the link mode release or debug
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 18:42:19 +01:00
FrancisANDRE
2c601fd12b Restore suffix for TestLibrary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 15:34:51 +01:00
FrancisANDRE
48df5efc15 Remove the "d" suffix for TestApp binary.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:50 +01:00
FrancisANDRE
735689c38c Remove the suffix() from TestLibrary path.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:22:13 +01:00
FrancisANDRE
4027a0581b Reformat
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-12 14:20:33 +01:00
FrancisANDRE
07ba367dff Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 18:55:14 +01:00
Aleksandar Fabijanic
cfdf3e4134 Merge pull request #1082 from RangelReale/mscver
* Add VS2015 platform
2015-12-11 11:20:12 -06:00
Rangel Reale
132dc458f2 * Add VS2015 platform 2015-12-11 15:18:50 -02:00
FrancisANDRE
4e6bdab51d Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 16:49:53 +01:00
FrancisANDRE
0e6f735921 Merge remote-tracking branch 'pocoproject@github/develop' into develop 2015-12-11 11:08:46 +01:00
FrancisANDRE
0bb0361ffd Use Clock instead of Timestamp which is inaccurate on multicode CPU.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-11 10:29:14 +01:00
Miklos Vajna
ce8fa7740c GH #1050 JSON: fix gcc -Wshadow warnings 2015-12-11 08:32:53 +01:00
Aleksandar Fabijanic
1483d0d112 Merge pull request #1073 from RangelReale/windowshleak
Don't leak <windows.h> (Poco/UnWindows.h) to library users
2015-12-10 21:11:05 -06:00
Mike Gelfand
2ea1d07c2c Unmask SIGINT when testing termination by signal
This will ensure that default signal handler is called (instead of possibly
ignoring the signal if it was masked by one of parent processes) and the
process is indeed terminated abnormally.
2015-12-10 21:47:52 +03:00
Guenter Obiltschnig
a80d2a5c9d fixed insert call 2015-12-10 18:48:18 +01:00
Rangel Reale
b47f38fc33 * Don't leak <windows.h> (Poco/Unwindows.h) to library users 2015-12-10 13:16:02 -02:00
Guenter Obiltschnig
dfe52ac11c fix ordering behavior of insert to match doc 2015-12-10 09:46:11 +01:00
Guenter Obiltschnig
fbf10469b3 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2015-12-08 14:55:20 +01:00
Aleksandar Fabijanic
cf02d38986 Merge pull request #1066 from fbraem/develop
Escape Unicode in JSON
2015-12-07 11:56:49 -06:00
fbraem
18b92b5b36 Use escape to correctly escape unicode characters 2015-12-07 17:33:10 +01:00
fbraem
7086d93324 Add escape/unescape functions 2015-12-07 17:31:49 +01:00
Alex Fabijanic
95f1a7c30d Process hangs on waitpid #1063 2015-12-06 23:18:29 -06:00
Alex Fabijanic
4499062f0d add rpath for test dynamic library; silence unused warnings for test 2015-12-06 22:08:18 -06:00
FrancisANDRE
3c2a83d2ee Use POCO_BASE for looking for test data directory.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-12-06 09:07:31 +01:00
Guenter Obiltschnig
dc2e299bef Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2015-12-05 11:54:07 +01:00
Miklos Vajna
b9cfd346a1 GH #1050 Foundation: fix gcc -Wshadow warnings 2015-11-30 15:49:07 +01:00
zosrothko
94bb16fdee Include <pcre.h> for an unbundled build. 2015-11-17 18:45:44 +01:00
Guenter Obiltschnig
e896d92585 fix error handling in setThreadName (#1022) 2015-11-13 11:12:09 +01:00
Guenter Obiltschnig
825e99578a GH #1022: clean-up setThreadName 2015-11-10 10:07:48 +01:00
Kim Grasman
883cdb7b14 Fix #928: Workaround to fix -Wswitch warning 2015-10-13 21:58:56 +02:00
Günter Obiltschnig
c25d9f00e5 Merge pull request #973 from aaboyd/move-overwrite-on-windows
overwrite existing files on windows when moving files
2015-10-09 09:35:58 +02:00
Alex Boyd
7ef3c2e44c overwrite existing files on windows when moving files 2015-10-09 00:48:23 -04:00
Mike Gelfand
3abdb1fc23 Return non-zero from ProcessHandle::wait if killed by signal
Currently, ProcessHandle::wait (and transitively Process::wait) on *NIX
return zero if process was terminated as a result of unhandled signal.
Check if this is the case and return negative signal number instead to
indicate non-graceful process termination.
2015-10-03 15:32:15 +03:00
Guenter Obiltschnig
92e2a19661 added EventChannel class (from macchina.io) 2015-09-30 11:03:03 +02:00
Guenter Obiltschnig
5184a8526f tvOS support 2015-09-29 14:25:54 +02:00
Guenter Obiltschnig
06ab1e9820 setThreadName: abbreviate thread name if too long 2015-09-28 22:46:31 +02:00
David Morán
cd01fad478 Added regular expression test for named substrings 2015-09-28 12:13:59 +02:00
David Morán
8f1f678f76 Named substring support 2015-09-28 02:21:21 +02:00
aaron0x
0a64390399 Enhance FileChannel purge setting. 2015-09-26 23:31:30 +08:00
aaron0x
928a7ffce8 avoid redundant strlen. 2015-09-20 19:52:30 +08:00
Mike Gelfand
cec5a43151 Change Foundation library version back to SHARED_LIBRARY_VERSION
Foundation is the only library using PROJECT_VERSION as library version,
the change accidentally introduced by commit b69fafb84c. This causes
difference in library being linked to (libPocoFoundation.31.dylib on Mac)
and library returned by $<TARGET_FILE:Poco::Foundation> for imported
target (libPocoFoundation.1.6.1.dylib), causing inconvenience. Also, this
differs from autoconf-based builds where only "31" (soversion) library is
being created and not "1.6.1" (project version) one.
2015-09-20 03:08:19 +03:00
aaron0x
7d079772ef add missing return. 2015-09-20 05:35:04 +08:00
aaron0x
3e7f722ca6 1. move flipBytes(float/double) to ByteOrder.
2. remove redundant code from BinaryWriter and BinaryReader.
2015-09-20 05:21:36 +08:00
FrancisANDRE
a4479552b6 add SharedLibrary::getOSName() to improve portability of shared library
real filename over different OS like Linux/Unix/Cygwin & Windows.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-09-19 08:28:26 +02:00
Aleksandar Fabijanic
8aef165ed5 Merge pull request #938 from adasworks/develop
fix: cmake: set public compiler flags on library targets
2015-09-15 10:28:42 -05:00
Csaba Keszegh
61305c01ee fix: set public compiler flags on library targets
POCO_STATIC: has to be set when using poco as static library
POCO_NO_ATUMATIC_LIBS: CMake config module will find the correct libraries.
  Don't need to guess in headers.
2015-09-15 10:02:38 +02:00
Guenter Obiltschnig
526ba5d0b3 added comments regarding encoding/decoding to getPath*() 2015-09-14 10:25:02 +02:00
Guenter Obiltschnig
2603c7a0d4 added comment regarding query strings (#767) 2015-09-14 10:19:08 +02:00
Guenter Obiltschnig
e63c56cafb added testcase for #936 2015-09-11 14:01:10 +02:00
Guenter Obiltschnig
622d9d4c6c NumberParser::parseHex[64](): allow 0x/0X prefix 2015-09-09 14:38:08 +02:00
Guenter Obiltschnig
ea52ac5358 do not use of UINT64_C 2015-09-09 13:30:14 +02:00
Guenter Obiltschnig
f315dc603e fix for pre-C++11 compilers 2015-09-09 12:59:35 +02:00
Guenter Obiltschnig
15f034cbbd fix GH #931: make strToInt() more strict in what it accepts 2015-09-09 11:14:29 +02:00
Guenter Obiltschnig
3eca77450c fix version no, style 2015-09-08 17:36:28 +02:00
Aleksandar Fabijanic
f6ab1fb925 Merge pull request #917 from zosrothko/develop
additionnal fixes for the Cygwin platform
2015-09-05 09:30:58 -05:00
Guenter Obiltschnig
249c064ec7 #921: better comment, provide workaround for MSVC only 2015-09-01 21:46:18 +02:00
Guenter Obiltschnig
22c7933fe5 another attempt at fixing #921 2015-09-01 08:31:16 +02:00
Guenter Obiltschnig
245a628d90 removed explicit template instantiations from header files (#921) 2015-08-30 08:26:13 +02:00
Guenter Obiltschnig
e769b8df87 needs to be marked for import/export #921 2015-08-29 22:40:58 +02:00
FrancisANDRE
7f01fbc3db add std::string SharedLibrary::prefix() for building library name that
complies with Cygwin standard.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:48:26 +02:00
FrancisANDRE
b0989b0828 replace duplicate define for HP_ACC by the COMPAQ one for DEC CXX
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:42:11 +02:00
FrancisANDRE
d75119648b Merge remote-tracking branch 'pocoproject/develop' into develop 2015-08-24 14:34:28 +02:00
FrancisANDRE
293e7c91f7 use /dev/tty instead /dev/console on Cygwin otherwise a file acces check
makes the test failing.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-22 09:54:29 +02:00
FrancisANDRE
d1a8c11f98 skip SharedMemoryTest for DPOCO_NO_SHAREDMEMORY platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:15:13 +02:00
FrancisANDRE
462deab58b condition assert for POCO_NO_FPENVIRONMENT platform
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:13:56 +02:00
FrancisANDRE
5354989f45 add a newline for clarity
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-21 14:12:27 +02:00
Aleksandar Fabijanic
23f8842a14 Merge pull request #903 from zosrothko/develop
Various fixes for Cygwin X86_64 port and additional minor fixes
2015-08-20 16:56:46 -05:00
Guenter Obiltschnig
ec71e76f0a PatternFormatter fix, added test 2015-08-20 20:23:13 +02:00
Guenter Obiltschnig
fafe691a04 fixes for style and consistency 2015-08-20 14:55:17 +02:00
Günter Obiltschnig
74ffb112bc Merge pull request #907 from dedvalson/develop
PatternFormatter Priority Name Enhancement
2015-08-20 14:48:36 +02:00
FrancisANDRE
c8abda6e4e change return type of getOsTid() const; from long to IntPtr
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-19 17:46:05 +02:00
Günter Obiltschnig
bc5d83cf5f Merge pull request #909 from mkrivos/develop
Some more runtime exceptions types
2015-08-19 09:07:14 +02:00
Marian Krivos
1b1c4416dd Added some more RuntimeExceptions - InterruptedException, IndexOutOfBoundsException, UnsupportedOperationException, EmptyStackException, StackOverflowException, ArithmeticException 2015-08-17 21:55:52 +02:00
FrancisANDRE
c869eb8cbc Use a C-style coercion cast for portability. Naither reinterpret_cast,
nor static_cast is working.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 10:11:43 +02:00
FrancisANDRE
a8743b7140 Fix invalid reinterpret_cast to static_cast.
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 08:08:22 +02:00
FrancisANDRE
2f40cd5b59 With ptrhead, Thread::currentTid() returns a pointer to a struct which
leads to a compile error when assigning it to an long. Thus _ostid type
should be changed to IntPtr and the assignment should use a
reinterpret_cast.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 07:36:57 +02:00
Don Edvalson
5c20361005 Pattern Formatter Priority Name Enhancement
Added a property to allow the user to specify the actual names for the
priorities that will go into the log.
2015-08-14 09:16:05 -04:00
FrancisANDRE
4368a1fcfe add POCO_EXPORT_INTERFACE to ClassLibrary.h
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-08 11:27:12 +02:00
Mazyad Alabduljaleel
5cff648eea Added NotificationQueue::remove function
This includes appropriate tests, which pass on my Mac 10.4 machine
2015-08-06 14:13:11 +04:00
Guenter Obiltschnig
e438061ce7 fixed GH #722: Unicode Converter Test confuses string and char types 2015-07-31 10:23:16 +02:00
Guenter Obiltschnig
d2c64b4493 GH# 878: check for valid hex characters, support SHA-1 name-based UUIDs (v5) 2015-07-31 10:05:58 +02:00
Günter Obiltschnig
8b7b7cc818 again: VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 18:58:52 +02:00
Günter Obiltschnig
b6ae5128ce added Visual Studio 2015 project files 2015-07-30 15:48:45 +02:00
Günter Obiltschnig
d10c43d0d5 VS2015: changed optimization for testsuite to custom, due to optimizer bug leading to crash in PBKDF2EngineTest 2015-07-30 13:46:00 +02:00
Günter Obiltschnig
6c09516fee Project files for Visual Studio 2015 2015-07-30 11:15:52 +02:00
Aleksandar Fabijanic
accf879682 Merge pull request #863 from cesar-carrasco/develop
Defined SYS_gettid to __NR_gettid when not already defined.
2015-06-23 21:31:27 -05:00
Aleksandar Fabijanic
22bb363260 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869, part II 2015-06-23 21:04:59 -05:00
Aleksandar Fabijanic
cc9fb56705 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869 2015-06-23 21:02:18 -05:00
Cesar Carrasco
7f52fda001 Defined SYS_gettid to __NR_gettid when not already defined. 2015-06-16 16:09:58 -04:00
Aleksandar Fabijanic
2d6fc27dd1 Var BadCastException #861 2015-06-10 09:03:12 -05:00
unknown
1c26b58452 Optional force scan for DirectoryWatcher #853 2015-06-03 14:55:05 -05:00
Matej Kenda
e26bb65a5b Logger: added %O to message format to display numeric thread id in logs. 2015-06-01 10:00:56 +02:00
Matej Kenda
f1e6cba313 Thread POSIX: tid is numeric OS thread ID on Linux and OSX instead of pthread_t. 2015-06-01 09:59:01 +02:00
Matej Kenda
01fc7f2e1c Added condition variable and timeout to ObjectPool::borrowObject/returnObject to block caller until an object is available. 2015-05-27 14:01:39 +02:00
Alex Boyd
c23f6f0b57 add 'log' to SYSLIBS when compiling Foundation for android 2015-05-26 15:37:36 -04:00
Alex Fabijanic
995832639e Merge branch 'develop' into OpenSSLBuild 2015-05-21 19:46:58 -05:00
Alex Fabijanic
af6c22c0ac simplify Crypto and NetSSL VS projects 2015-04-25 16:18:19 -05:00
Guenter Obiltschnig
25b446502b removed GCC_DIAG_OFF 2015-04-23 17:31:05 +02:00
Guenter Obiltschnig
1f1f828e29 fixed an unused warning 2015-04-23 16:08:16 +02:00
Guenter Obiltschnig
ac12cd4972 removed GCC_DIAG_OFF macro, fixed static_assert typedef to include __attribute__((unused)) for GCC 2015-04-21 19:03:55 +02:00
Alex Fabijanic
62bcc5c6ed GCC_DIAG_* definitions are missing for Windows (MinGW) #785 2015-04-22 18:36:12 -05:00
martin-osborne
7780ab3ae0 Corrected more spellings. 2015-04-10 11:43:49 +01:00
martin-osborne
4cf45ea4a3 Corrected more words. 2015-04-10 11:31:12 +01:00
martin-osborne
e9dce11e50 Correct mispelt 'd' and 'e' words. 2015-04-10 10:54:47 +01:00
martin-osborne
12c0594db6 Corrected misspelt 'b' and 'c' words. 2015-04-06 17:56:13 +01:00
martin-osborne
7e730aa9b8 Corrected other misspelt 'a' words. 2015-04-06 17:34:48 +01:00
martin-osborne
91dd5f8e44 Corrected spelling of accommodate in documentation and comments. 2015-04-06 17:03:35 +01:00
Alex Fabijanic
e26d1ffa13 Poco::Var operator== throws exception #769 2015-04-03 10:37:07 -05:00
Guenter Obiltschnig
648930b8db do not flush underlying stream on sync() as these causes issues with Zip files 2015-03-28 11:44:39 +01:00
Guenter Obiltschnig
c06b36039b fix GCC_DIAG_OFF 2015-03-27 21:02:19 +01:00
Guenter Obiltschnig
c0228c5ff8 allow turning off GCC_DIAG_ON/OFF 2015-03-27 16:54:37 +01:00
Günter Obiltschnig
35a7b47138 replace extern "C" #include hack by copying needed declarations from pcre_internal.h header 2015-03-24 07:36:51 +01:00
Guenter Obiltschnig
df9575dd26 fixes for SolarisStudio compiler 2015-03-23 23:20:15 +01:00
Guenter Obiltschnig
1a8a7fc1b4 fix vs90 testsuite 2015-03-22 17:30:03 +01:00
Guenter Obiltschnig
dc7d874775 fixed project files 2015-03-22 14:33:04 +01:00
Rangel Reale
d6fcca806e * NaCl support 2015-03-20 11:28:49 -03:00
Guenter Obiltschnig
9279794ee9 fix affinity test 2015-03-20 09:52:13 +01:00
Guenter Obiltschnig
f481a4c92f fix affinity test 2015-03-20 09:50:56 +01:00
Alex Fabijanc
97abc36c14 update testsuite makefile 2015-03-19 23:30:23 -05:00
Alex Fabijanc
96a74bac48 update testuite VS projects 2015-03-19 23:28:14 -05:00
Alex Fabijanc
027c8a40e2 FIFOBuffer tidy up 2015-03-19 23:22:00 -05:00
Guenter Obiltschnig
406175a828 don't throw if thread cpu affinity is not supported 2015-03-19 14:03:54 +01:00
Guenter Obiltschnig
2b1301b3e3 style and interface fixes for thread affinity 2015-03-18 16:40:22 +01:00
Aleksandar Fabijanic
8b96fd4a33 Merge pull request #743 from bas524/affinity
add thread affinity policy to threadpool
2015-03-17 17:47:54 -05:00
bas524
283e9a9595 fix error 2015-03-17 09:07:26 +03:00
bas524
6b7c87bf5c replace typedef enum to pure enum ThreadAffinityPolicy
fix problem in cmake for pthread_setaffinity_np
2015-03-17 08:33:05 +03:00
Guenter Obiltschnig
416380936a fix a race condition 2015-03-16 16:09:54 +01:00
Guenter Obiltschnig
490fa253f1 style fix 2015-03-12 14:50:16 +01:00
ale_bychuk
9d4d3e41dd Add thread affinity support to taskmanager 2015-03-12 16:12:33 +03:00
Guenter Obiltschnig
c52b6ec949 fix for libstdc++ workaround 2015-03-11 23:45:05 +01:00
Günter Obiltschnig
a97c58a961 disable Timestamp hack on WinCE (re-enable with -DPOCO_WINCE_TIMESTAMP_HACK) 2015-03-11 23:18:51 +01:00
Günter Obiltschnig
f5c49f0d94 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2015-03-11 22:07:29 +01:00
Günter Obiltschnig
6de327fe07 fixed missing member var init 2015-03-11 22:07:07 +01:00
Guenter Obiltschnig
59bd310130 workaround for clang/libstdc++ issue on OS X: seekg() returning -1 does not set failbit 2015-03-11 21:58:52 +01:00
ale_bychuk
4c1fe9ef02 add thread affinity policy to threadpool
there are OS_DEFAULT, UNIFORM_DISTRIBUTION and CUSTOM
With custom policy we can run thread on specified cpu
2015-03-11 23:39:21 +03:00
Günter Obiltschnig
67f90e2a8e fixed project files 2015-03-11 18:39:23 +01:00
Günter Obiltschnig
70eabf06e6 Merge pull request #738 from Sevalecan/develop
Move other FIFOBuffer tests to new BasicFIFOBufferTest
2015-03-11 17:41:28 +01:00
Günter Obiltschnig
bdd9b7e3a6 fixed WEC2013 project files 2015-03-11 16:41:40 +01:00
Pascal Bach
745d5fb025 Add missing const in ThreadImpl::getAffinityImpl for WINCE 2015-03-11 11:31:10 +01:00
Pascal Bach
1b8a7c1664 Add missing Path implementations for WINCE 2015-03-11 11:30:10 +01:00
Aleksandar Fabijanic
849e362b1d Merge pull request #730 from bas524/feature
Add setaffinity method to thread implementation and interface class
2015-03-08 16:10:45 -05:00
ale_bychuk
a0e172419f fix indentation 2015-03-08 22:54:45 +03:00
ale_bychuk
3af35f548c fix indentation 2015-03-08 22:04:29 +03:00
ale_bychuk
662fbc861a add test for thread affinity and fix some problems 2015-03-07 10:55:23 +03:00
Guenter Obiltschnig
4336528290 fix: android arm64/x86_64 compile error with getdtablesize 2015-03-06 16:32:02 +01:00
bas524
888abad26c add getAffinity method
throw NotImplementedException on unsupported platforms
2015-03-05 18:11:56 +03:00
bas524
158aaab180 Add setaffinity method to thread implementation and interface class 2015-03-04 13:24:26 +03:00
Guenter Obiltschnig
5dea080b0b use GCC_DIAG_OFF(unused-local-typedefs) only for GCC >= 4.8 2015-03-03 06:51:23 +01:00
Alex Fabijanc
7253045a6e added ProGen Files for Foundation and regenerated projects to include JSONString 2015-03-02 19:57:46 -06:00
Alex Fabijanc
b91096b528 added ProGen files for Foundation 2015-03-02 19:50:29 -06:00
Alex Fabijanc
c727402dd9 added secure WebSocket tests 2015-03-02 19:34:50 -06:00
Jonathan S
7e07cb9d4d Moved other FIFOBuffer tests to BasicFIFOBufferTest 2015-02-25 21:10:20 -05:00
Jonathan S
3173bddd99 Make next() use call to begin() instead of _buffer.begin() 2015-02-24 22:07:28 -05:00
Jonathan S
1bbeb9ebd3 Added same next() logic to advance() to prevent advancing past the end of the buffer. 2015-02-22 19:56:54 -05:00
Jonathan S
30ae0afd7b Changed FIFOBuffer's next() to reset FIFO data to the start of the internal buffer to make it compatible with writing to the next() pointer. 2015-02-21 20:31:44 -05:00
Jonathan S
d89f41add0 Added memset to BasicFIFOBufferTest 2015-02-21 20:30:04 -05:00
Jonathan S
13c176ef62 Added in test suite for BasicFIFOBuffer 2015-02-21 20:13:44 -05:00
Alex Fabijanic
07a2529d9d JSON Formatter modifications 2015-02-12 20:49:35 -06:00
Alex Fabijanic
74e970d1a1 gcc error #711 2015-02-10 12:24:31 -06:00
Alex Fabijanic
1e0663563b passify gcc 2015-02-10 10:34:41 -06:00
Aleksandar Fabijanic
838a7bbcae add JSONString to Makefile 2015-02-10 09:25:17 -06:00
Alex Fabijanic
beb81b4f16 add JSONFormatter 2015-02-10 00:27:07 -06:00
Aleksandar Fabijanic
aaf32257e3 Merge pull request #601 from martin-osborne/issue_532-3
Issue #532 -  Changes to address `FastMutex` being non-recursive on Win32 platforms
2015-02-09 21:08:12 -06:00
Aleksandar Fabijanic
5bfe1fc56b Merge pull request #694 from drali/develop
Changed Process::killImpl to throw on correct error code
2015-02-09 21:05:17 -06:00
Aleksandar Fabijanic
c00f13d277 Merge pull request #561 from bschramke/develop
Support for XDG Base Directory Specification
2015-02-09 21:04:28 -06:00
Rangel Reale
923874c243 * Add export macro to AndroidLogChannel 2015-01-29 15:47:46 -02:00
Rangel Reale
1c648764c2 - Android log channel implementation
- Removes warning from Bugcheck.h on Android

fixes #122
2015-01-29 11:14:39 -02:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Alex Fabijanc
b2e209bf54 fix windows MemoryStreamTest build 2015-01-26 22:36:30 -06:00
Daniel Ali
c4cf869141 Changed Process to throw on correct error code 2015-01-26 20:26:52 -05:00
Aleksandar Fabijanic
c14f8a8a69 Merge pull request #646 from adriaan42/develop
Prevent possible data race in access to Timer::_periodicInerval
2015-01-25 21:05:12 -06:00
Aleksandar Fabijanic
f440c4b101 Merge pull request #688 from martin-osborne/issue_297
Issue #297 - Added implementation of seekoff to BasicMemoryStreamBuf
2015-01-25 20:56:20 -06:00
Chris van Dijk
07d436a8b3 Include missing header, fixes #690 lack of monotonic Clock on Linux/POSIX
The macros _POSIX_TIMERS and _POSIX_MONOTONIC_CLOCK are defined in
(includes of) unistd.h, without them Clock falls back to using Timestamp
internally.
2015-01-26 02:27:43 +01:00
martin-osborne
683d7ce83b Added additional checks of tellp and tellg. 2015-01-25 11:41:24 +00:00
martin-osborne
3d7ecaa224 Correct comment in tests. 2015-01-25 10:20:34 +00:00
martin-osborne
9b2e897280 Removed comment. 2015-01-25 10:05:59 +00:00
martin-osborne
1c03740e41 Expanded tests to check boundary cases. 2015-01-25 08:59:44 +00:00
martin-osborne
c264a0d716 Restored original names for typedefs. Fixed gcc build. 2015-01-25 07:28:24 +00:00
martin-osborne
5e104addd3 Issue #297 - Implemented BasicMemoryStreamBuf::seekoff
This change adds support for `tellp`, `tellg` and seeking.

**Additional notes:**

+ `tellg` calls `rdbuf->pubseekoff(0, cur, out)` [lib.ostream.seeks] so need to
  provide an override of `seekoff`.
+ Requirements for `seekoff` are in 27.7.1.3.
+ 27.7.1.3 - Standard has a roundabout way of saying `cur` is valid if only one
  of `in` or `out` is specified (Condition 3).
+ `xend` is `egptr`/`epptr` (get area/put area).
+ `xbeg` is `eback`/`pbase` (get area/put area).
+ `xnext` is `gptr`/`pptr` (get area/put area).
+ `newoff` is a bit of a misnomer, the new offset into the stream is given by
  `newoff + off`.  `newoff` is really the start point.
+ You can set `gnext` with `setg`, but you can't do that with `setp` you have
  to `pbump` by the new offset minus the current offset.
2015-01-24 18:39:06 +00:00
martin-osborne
f79ab5b77a Merge branch 'develop' into issue_297 2015-01-24 08:53:07 +00:00
martin-osborne
6eb8f582e7 Added missing explicit keyword. 2015-01-17 12:02:42 +00:00
martin-osborne
1bb48442b6 Updated documentation. 2015-01-17 11:58:01 +00:00
martin-osborne
21d2e963ef Updated Event c'tor to accept an enum. 2015-01-17 10:07:44 +00:00
Aleksandar Fabijanic
4e6fad87dc Merge pull request #664 from cryptoknight/WriteOnCopy
Don't automatically make copied files writable on Windows
2015-01-16 15:33:32 -06:00
Scott Davis
e3c5cd30dc Test preservation of write attribute on file copy 2015-01-16 15:10:10 -05:00
Scott Davis
9913ee1ac8 Don't automatically mark copied files as writable on Windows (non-Unicode and CE) 2015-01-16 15:09:00 -05:00
martin-osborne
96c859eaaa Fixed POSIX build. 2015-01-14 11:04:23 +00:00
martin-osborne
00b568193c Replaced boolean with enum in c'tor.
Implemented in a similar style to FPEnvironment.
2015-01-14 10:48:22 +00:00
martin-osborne
f9942829d3 Merge branch 'develop' into issue_532-3 2015-01-11 11:12:43 +00:00
martin-osborne
58e860c440 Resolved merge conflict with develop. 2015-01-10 12:00:24 +00:00
Guenter Obiltschnig
92c607e767 code style and doc fixes 2015-01-09 19:04:58 +01:00
Scott Davis
fc24be6199 Don't automatically mark copied files as writable on Windows 2015-01-08 17:11:23 -05:00
Scott Davis
5fa4dc3da7 Add missing constructor for RecursiveDirectoryIterator 2015-01-08 17:02:46 -05:00
Alex Fabijanic
d992509f6e GCC diagnostic guard fix 2015-01-05 22:20:58 -06:00
Aleksandar Fabijanic
4ae9aa9674 building with gcc 4.6.3 gives lots lots of warnings #658 2015-01-01 22:47:03 -06:00
Alex Fabijanic
1b9aac5f7c Mingw64 #414 (small portion) 2015-01-01 14:41:09 -06:00
Alex Fabijanic
767d268eed moved PBKDF2 tests into VS120 project Crypt filter 2015-01-01 13:11:36 -06:00
Aleksandar Fabijanic
ed63fbd42c Merge pull request #653 from xantares/mingw_headers
Fix missing windows includes for mingw
2015-01-01 12:37:41 -06:00
Alex Fabijanic
eb04ffc423 style fixes 2015-01-01 12:35:26 -06:00
Aleksandar Fabijanic
f8e906171e Merge pull request #654 from xantares/win32_defines
fixed win32 defines
2015-01-01 12:16:57 -06:00
Asari Takashi
d1436c09fd Added WINDMC variable to build scripts 2014-12-25 09:53:44 +00:00
xantares
1e28368222 fixed win32 defines 2014-12-23 16:23:08 +01:00
xantares
bf929f9704 Fix missing windows includes for mingw 2014-12-22 22:08:32 +01:00
Guenter Obiltschnig
d247e1cf05 updated CHANGELOG; CMake fixes for OS X; doc updates; release script improvements 2014-12-22 00:06:53 +01:00
Pascal Bach
97ea3ef483 CMake, WinCE: Make samples and tests compile under Windows CE 2014-12-21 16:23:35 +01:00
Pascal Bach
10ef2b2335 CMake: Remove WinDriver usage in tests
Add WinCEDriver to packages supporting it
2014-12-21 16:23:35 +01:00
Pascal Bach
af1b94602a CMake: Remove redundant source files that caused error for Windows CE build 2014-12-21 16:23:34 +01:00
Aleksandar Fabijanic
c5268c9777 spelling fix 2014-12-19 07:34:46 -06:00
Adriaan Schmidt
391deca195 Prevent possible data race in access to Timer::_periodicInerval 2014-12-19 11:06:45 +01:00
Adriaan Schmidt
2fc0e524fa Prevent possible data race in access to PooledThread::_idle 2014-12-18 13:04:33 +01:00
Guenter Obiltschnig
28cf70d3f9 updated version no and changelog 2014-12-15 11:10:28 +01:00
Guenter Obiltschnig
931a5a5252 Removing support for Visual Studio.NET 2003 and Visual Studio 2005 - it's time to say goodbye to the past 2014-12-15 11:05:13 +01:00
Guenter Obiltschnig
1e471d7343 semantic versioning documentation 2014-12-11 20:11:20 +01:00
Günter Obiltschnig
b8181e4ddb check USERPROFILE before HOMEDRIVE/HOMEPATH 2014-12-09 11:03:09 +01:00
Guenter Obiltschnig
a5c8b751d9 fixed #627: Poco::Path::home() returns c:\windows\system32 instead home directory 2014-12-09 10:38:11 +01:00
Alex Fabijanic
10aedfe5ad supress gcc warning avalanche 2014-12-08 20:14:19 -06:00
alex
e5cdb74bb0 supress LogStream empty line log entries; ignore VS profiler files 2014-12-08 00:00:40 -06:00
Marian Krivos
0139648c46 Logger::setLevel(string) - optionally parse log level as number in range 1 to 8 2014-12-07 20:39:00 +01:00
Günter Obiltschnig
ff3f260a10 fix warning, add note to Config.h regarding deprecation of POCO_WIN32_UTF8 2014-12-06 11:30:26 +01:00
Guenter Obiltschnig
31a0c7cb7e added deprecation warning for POCO_WIN32_UTF8 2014-12-06 11:13:44 +01:00
Kontinuation
fe86370c34 fixed one-shot timer and maufunction of long start interval 2014-12-04 02:44:33 +08:00
Guenter Obiltschnig
755c31a4fd Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-12-02 09:08:23 +01:00
Guenter Obiltschnig
9af6b5b2db flush underlying streams on close()/sync() 2014-12-02 09:08:07 +01:00
Christopher Baker
e0d5535b7a Fixed small documentation typo onr to one. 2014-12-01 12:39:02 -06:00
martin-osborne
627eee72cb Added test for tellp/tellg issue. 2014-11-30 10:25:51 +00:00
Günter Obiltschnig
5f8d7ef994 Thread fixes for WinCE 2014-11-24 14:34:27 +01:00
Guenter Obiltschnig
d5d048e689 Poco::BasicEvent improvements and preparations for future support of lambdas/std::function 2014-11-24 11:17:27 +01:00
Guenter Obiltschnig
77bbc7e9ba fixed GH #618: OS X 10.10 defines PAGE_SIZE macro, conflicts with PAGE_SIZE in Thread_POSIX.cpp 2014-11-21 14:47:33 +01:00
Guenter Obiltschnig
6ddce4c9ff Timestamp reference point ambiguity #614 2014-11-21 09:32:13 +01:00
Alex Fabijanic
5830263700 added LineEndingConverter and WebNotifier to samples solutions 2014-11-20 21:33:01 -06:00
Günter Obiltschnig
bc0978d01e fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244
2014-11-20 21:22:52 +01:00
Guenter Obiltschnig
22c22fdea7 fixed GH #616: Visual Studio warning C4244 2014-11-20 12:13:58 +01:00
Günter Obiltschnig
7cd76b4f69 fixed #438: use FILE_WRITE_ATTRIBUTES instead of
FILE_ALL_ACCESS permission to set file time
2014-11-19 22:15:48 +01:00
Guenter Obiltschnig
db8756887d add missing #include 2014-11-19 17:57:04 +01:00
Guenter Obiltschnig
b620c25278 fixed #549: Memory allocation is not safe between fork() and execve() 2014-11-19 16:56:01 +01:00
Guenter Obiltschnig
7b11e14624 GH #569: update documentation 2014-11-19 15:31:37 +01:00
Günter Obiltschnig
4303967e2a add test for #560 2014-11-19 12:43:25 +01:00
Günter Obiltschnig
e76f475da2 fixed GH #560: DateTime class calculates a wrong day 2014-11-19 12:42:46 +01:00
Günter Obiltschnig
4c11857056 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-11-19 10:39:21 +01:00