Re: [Cppcms-users] best way for background processes
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2012-04-25 12:32:59
|
Am 24.04.2012 22:16, schrieb Artyom Beilis: > >> but if I try to access to the >> context it says: "Assertion `px != 0' failed." > See, cppcms::http::context is request/response context... Cron job > does not have any request/response as it is not initiated by > the client, so you are probably doing something wrong. Maybe i have to be more specific. I don't want to access the context in general, i want access to the cache, to rise some triggers. > Just create a event using deadline_timer, but where to "start" this event? If I start it within the constructor of the async event, this would be wrong, wouldn't it? (this is how i get the px != 0 error) > and submit a job > to the thread pool or if it is something very short execute it in > the event loop itself. what is very short in your opinion? Any suggestions when to execute it in the thread pool and when not? > Artyom > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |