Re: [Cppcms-users] Plugins and templates
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-19 12:39:17
|
> > It currently returns an booster::intrusive_ptr to an instance of the > plugin's application. > What does it make for a difference at all if an application is used > asynchronous? Big!!! - Asynchronous application dies when it does not have handles. i.e. you need to keep it alive. Or keep a live pointer on it. Generally speaking applications pool does not keep a pointer on it. And when last reference dies it removes it from them pool. So in your case it probably becomes immediately removed from the pool as its pointer unreferenced. - Asynchronous application executed in main thread and not in thread pool - Asynchronous application does not load session by default. - Asynchronous application does not do gzip compression - Only one asynchronous application exits and handle requests while synchronous can have multiple instances and they are cached in pool. And much more... > > To create a custom factory, I just have to subclass > cppcms::applications_pool::factory and override the operator() > statement, haven't I? > Yep ;-) Artyom P.S.: Still take a look on loading shared libraries option. it is interesting. |