Re: [Cppcms-users] Document regarding input content filtering
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2016-04-13 08:18:45
|
On Wed, Apr 13, 2016, at 03:37 AM, Artyom Beilis wrote: > Currently there is private member function application::get_pool() I > can create a public version of one or make it public. > I don't recall right now why I have made it private. > I moved application::get_pool() from private to public just now and this much cleaner version than the orginal one http://cppcms.com/wikipp/en/page/cppcms_1_2_filtering compiles: void main(std::sting path) { if(!request().is_ready()) { // handle all filtering stuff } else { pool_ptr pool = get_pool().lock(); /* note here! */ if(pool) { shared_ptr<context> ctx = release_context(); // now this context goes to another // application to be run. ctx->submit_to_pool(pool,path); } } } Best regards, CN -- http://www.fastmail.com - Access all of your messages and folders wherever you are |