[Cppcms-users] Asynchronous app calls thread_pool.post() and blocks current thread
Brought to you by:
artyom-beilis
|
From: dieterm57 <die...@gm...> - 2014-07-14 19:34:59
|
Hey all, I try to run an eventhandler inside of an asynchronous application, using the following code: http://pastie.org/private/9kuhjwvrzswmnpoczvvqw This seems to not block the eventloop, but the eventhandler gets called in the same thread the application runs in, resulting in the application not responding to new incoming requests. Is this the way it is designed or am I screwing up again :-[ ? What would be the correct application design to execute a 'background' job in the thread_pool, while not blocking the incoming requests? Sincerely Dieter |