Search found 77 matches

Go to advanced search

by killerbot
11 Aug 2017, 13:21
Forum: Support
Topic: Does poco time classes use tz database
Replies: 0
Views: 301

Does poco time classes use tz database

While reading the tz database wikipedia article, they mention systems and libraries that use tz database.
For example : boost and QT.

Is poco also supporting this ? If so we could inform the author of the article to also mention poco.
by killerbot
09 Aug 2017, 13:32
Forum: Support
Topic: Poco Timer / Threadpool problem
Replies: 2
Views: 459

Re: Poco Timer / Threadpool problem

that does not help, it will just allow to have more threads in the pool, and every timer will use 1 tread, so the net result is you can have more timers each using 1 thread. So if you set max to N : ==> N threads at max ==> N timers can be created (assume timers don't die) so nothing is gained. The ...
by killerbot
26 Jun 2017, 13:11
Forum: Support
Topic: Poco Timer / Threadpool problem
Replies: 2
Views: 459

Poco Timer / Threadpool problem

When using poco timer with a threadpool I wonder what the expectations are. I was expecting that the timers would SHARE the threads from the thread pool. In my test code, I create a threadpool of size 2, but when I create/start the third timer I run into the exception" terminate called after th...
by killerbot
07 Jun 2017, 20:48
Forum: Support
Topic: Timer : 2 questions
Replies: 0
Views: 282

Timer : 2 questions

1) The timer thread is taken from a thread pool, so there is a limit to the number of available concurrent timers. Say this number is N, does that mean I can only create N timers, or can I create more timers, but some of them will have to share a thread, and as such can influence one another (it can...
by killerbot
07 Jun 2017, 20:37
Forum: Support
Topic: Http Server on multiple ports
Replies: 0
Views: 320

Http Server on multiple ports

Assume you want the HttpServer to listen to port 80, but maybe also on another port (say 8080). Is there a way to do this. From what I could find, the only way I see for now is instantiating twice an HttpServer (and for example give them the same request handler factory). Is that impacting a lot on ...
by killerbot
07 Jun 2017, 20:34
Forum: Support
Topic: Stopping a timer, what with the callback
Replies: 2
Views: 634

Re: Stopping a timer, what with the callback

indeed this is the case.
I created an experiment that proves this behavior.
by killerbot
24 May 2017, 16:29
Forum: Support
Topic: Stopping a timer, what with the callback
Replies: 2
Views: 634

Stopping a timer, what with the callback

When you stop a timer, say via either: - destructor - stop() method Then according to the documentation of the stop() method : Stops the timer. If the callback method is currently running it will be allowed to finish first. Does this mean that the stop() method will only return after the callback is...
by killerbot
13 Feb 2017, 18:21
Forum: General Discussion
Topic: SO_REUSEPORT
Replies: 1
Views: 440

Re: SO_REUSEPORT

My own guess would have been in the build configure file something like : # # System Specific Flags # SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL -DPOCO_HAVE_IPv6 -DPOCO_POSIX_DEBUGGER_THREAD_NAMES -USO_REUSEPORT ==> -U...
by killerbot
13 Feb 2017, 18:09
Forum: General Discussion
Topic: SO_REUSEPORT
Replies: 1
Views: 440

SO_REUSEPORT

When we look at the "setReusePort" code (which is for exampel called by SocketImpl::bind() we notice 2 things : ⋅ an ifdef on SO_REUSEPORT ⋅  catching an exception void SocketImpl::setReusePort(bool flag) { #ifdef SO_REUSEPORT try { int value = flag ? 1 : 0; setOption(S...
by killerbot
19 Feb 2015, 23:04
Forum: Support
Topic: Poco::Timer steady or not
Replies: 1
Views: 855

Poco::Timer steady or not

small question, is the poco timer steady (monotonic), meaning not affected when someone changes the clock on the system ?

Go to advanced search

cron