Aleksandar Fabijanic
0818febed3
3857 os tid ( #4519 )
...
* fix(Thread_POSIX): Thread_POSIX.cpp shouldn't convert thread IDs to long #3857 ;
FreeBSD build errors fixes
* chore(StreamTokenizerTest): fix warnings
* fix(build): FreeBSD config
* fix(ThreadTest): some tests checking nothing; temporatily comment FreeBSD threadStackSize test (segfaults on pthread_join)
* fix(Thread_POSIX): handle emscripten in currentOsTidImpl
* chore: fix emscripten define
* chore: fix some clang warnings; add sanitizer flag to FreeBSD linux compat build config
2024-04-02 23:36:06 +02:00
Kari Argillander
708a5d8307
RFC: Remove Windows CE support ( #4342 )
...
* Remove _WIN32_WCE macro
Poco now use C++17 and Windows CE does not support it and VS2017 does
also not support it so we can just remove Windows CE code. First remove
all macro usages from our own files.
* Remove WinCE support from build files
Poco now use C++17 and Windows CE does not support it and VS2017 does
also not support it so we can just remove Windows CE code. Remove all
references from build systems / scripts.
* Remove Windows CE related source and header files
Poco now use C++17 and Windows CE does not support it and VS2017 does
also not support it so we can just remove Windows CE code. First remove
all macro usages from our own files.
* Remove wcelibcex folder
Poco now use C++17 and Windows CE does not support it and VS2017 does
also not support it so we can just remove Windows CE code. First remove
all macro usages from our own files.
* Remove rest Windows CE mentions
There where some Windows CE mentions left. Remove those.
* Update Windows CE documentation
We should keep documentation some time so people can find reason for
remove.
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
2023-12-14 00:25:04 +01:00
Pavle Dragisic
70bb3a40de
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>
2023-11-24 20:22:01 +01:00
Aleksandar Fabijanic
86a4f0045e
Fix/posix sleep ( #3705 )
...
* fix(Thread_POSIX): sleep() poor performance #3703
* chore(vscode): add file associations
* fix(TaskManager): waits for all threads in the ThreadPool #3704
* fix(Thread): call std::this_thread::sleep_for() to sleep #3703
* fix(PollSet): wakeup fd is never read #3708
* feat(Thread): Add Thread::set/getAffinity() #3709
* doc(Thread): Thread::trySleep() assertion #3710
* fix(PollSet): wakeup fd is never read (windows portion and some other optimizations) #3708
* feat(SocketReactor): improvements #3713
* chore(ThreadTest): add missing include
* fix(PollSet): wakeup fd is never read #3708
* fix(Any): #3682 #3683 #3692 #3712
* fix(mingw): lowercase winsock2 and iphlpapi to allow cross compile #3711
* feat(Thread): Add Thread::set/getAffinity() #3709
* chore(SocketReactor): one-liners inlined, removed redundant try/catch in dospatch, remove unused onBusy()
* feat(SocketReactor): add socket to ErrorNotification
* fix(SocketReactor): pollTimeout assignment and ConnectorTest leak
2022-07-26 06:54:56 -05:00
JackyWoo
1d28d2d42d
set thread name ( #3664 )
...
* set thread name
* fix dead lock
* fix code style & return fake name
* fix code style
* fix code style
Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
2022-07-18 05:21:33 -05:00
Matej Kenda
8a8c23c352
Fixes from develop experimental (on top of 1.11.2) ( #3017 )
...
* MongoDB::PooledConnection: Prevent unwanted release by disabling copy semantics. Enabled move semantics for C++11.
* Construct MongoDB::Cursor from aggragation cursor.
* Added function to get OS-specific numerical thread ID and %J pattern to use numerical OS thread id in pattern formatter.
Co-authored-by: Tomaz Beltram <tomaz.beltram@topit.si>
2022-05-18 17:23:16 -05:00
Günter Obiltschnig
958387b6ba
improved Lambda support
2020-01-26 08:41:22 +01:00
Günter Obiltschnig
b961ea8148
added start() method that takes a Poco::SharedPtr to a Runnable
2019-02-23 13:46:54 -05:00
Günter Obiltschnig
04e7e04d4d
Remove \$Id`$ headers
2017-09-09 11:14:06 +02:00
Aleksandar Fabijanic
c5268c9777
spelling fix
2014-12-19 07:34:46 -06:00
Günter Obiltschnig
7043a3d4ff
added support for starting functors/lambdas to Poco::Thread class
2014-11-16 20:43:19 +01:00
Roger Meier
b0581433a7
LICENSE: add info about SPDX-License-Identifier usage and use it
...
fix: remove executable flag and change back to 100644 (was 100755)
Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718
LICENSE: add info about SPDX-License-Identifier usage and use it
...
Signed-off-by: Roger Meier <roger@bufferoverflow.ch>
2014-05-04 21:02:42 +02:00
Alex Fabijanic
695ba1b0ee
remove sleep calls from Runnable
2014-04-26 16:04:17 -05:00
Alex Fabijanic
63850e8778
- return bool from Thread::trySleep()
...
- updated documentiation
- amended tests
- updated CHANGELOG
2014-04-26 09:51:57 -05:00
Aleksandar Fabijanic
0d58de8bc8
spelling fix
2014-04-25 23:54:59 -05:00
Alex Fabijanic
46b5785d98
- fixed PS build script environment vars generation
...
- fixed MongoDB 64-bit std::size_t warnings
- added Thread::trySleep()/wakeUp() and tests
2014-04-25 23:50:53 -05:00
aleks-f
e610afde4f
updated Thread::start documentation
...
- updated Thread::start documentation (port from 1.4.6)
2013-02-26 22:50:08 -06:00
Aleksandar Fabijanic
9b952a29c7
ported 1.4.4 branch changes (needs build checks and test runs!)
2012-05-19 03:04:51 +00:00
Aleksandar Fabijanic
5a639074d9
change EOL to 'native'
2012-04-29 18:52:25 +00:00
Aleksandar Fabijanic
d75e68c027
new trunk (base for 1.5)
...
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7
removing old trunk files
2012-04-23 00:43:14 +00:00
Marian Krivos
7d7c02c579
trunk: backport eventing from 1.4.3
2012-02-05 12:16:58 +00:00
Marian Krivos
ccbcadd4ab
trunk/branch integration: VxWorks & Wince
2011-08-23 07:11:45 +00:00
Marian Krivos
68306c2960
trunk/branch integration: VxWorks & Wince
2011-08-22 18:02:56 +00:00
Guenter Obiltschnig
64a7203a0d
integrated fixed from 1.3.4
2009-02-18 13:12:25 +00:00
Aleksandar Fabijanic
2a93c3e84f
some cosmetic changes
2008-04-24 10:06:35 +00:00
Aleksandar Fabijanic
9fd70bade2
- POCO_THREAD_STACK_SIZE macro
...
- few Thread modifications
- ThreadPool configurable stack size
2008-04-20 23:28:41 +00:00
Aleksandar Fabijanic
32c8d371e9
Thread OS priority
2008-04-15 23:25:19 +00:00
Aleksandar Fabijanic
89ca50a581
SF 1939071 and 1928786
2008-04-11 01:37:49 +00:00
Guenter Obiltschnig
da49971d0f
synced with main repository
2008-01-28 17:23:19 +00:00
Guenter Obiltschnig
adfaac6703
latest changes from main repository; added eclipse cdt project files
2007-04-28 09:34:20 +00:00
Guenter Obiltschnig
3e46ab332b
latest changes from main repository
2007-04-25 08:39:02 +00:00
Guenter Obiltschnig
7639f5a3f0
sync to internal repository
2007-02-23 14:27:57 +00:00
Guenter Obiltschnig
bb11cbaf29
sources from main repository
2006-12-22 09:51:53 +00:00
Guenter Obiltschnig
772a1021dc
sources from main repository
2006-12-22 09:31:08 +00:00
Guenter Obiltschnig
768642ae98
sources for 1.3
2006-11-17 16:21:51 +00:00
Guenter Obiltschnig
84fedbdb60
set eol-style to native
2006-10-23 15:48:43 +00:00
Guenter Obiltschnig
2d4078f392
submitted 1.2.0
2006-08-29 07:10:35 +00:00