Re: [Cppcms-users] Plugins and templates
Brought to you by:
artyom-beilis
|
From: Artyom <art...@ya...> - 2010-08-20 08:36:25
|
> >>
> >> Would it be possible to register a view at runtime?
> >>
> >
> > Not sure. It would required making views loading
> > and unloading be thread safe
>
> And wouldn't a simple thread lock suffice to allow only one call to the
> views_pool loading system at a time? I think boost features already some
> implementations in its thread part, you could integrate that to booster
> as well if it isn't integrated yet.
Than not that simple, think of unloading view while it in use.
When using view you don't really what to hold a lock.
Actually something like that is done in automatic views reloading,
using RW locks... You may define if you recompile the shared object/dll
it would be automatically reloaded. But it may have major performance issue.
I need to think about how to do it right.
In any case, it may be doable, but it should be done very carefully
Artyom
|