| Is Xpand thread safe [message #517900] |
Tue, 02 March 2010 08:37  |
zakir Hussain Messages: 76 Registered: July 2009 |
Member |
|
|
Hello All,
I am trying to invoke XpandTemplates in different threads, could you please suggest me whether Xpand is thread safe.
Each XpandTemplate is invoked using XpandFacade.
|
|
|
| Re: Is Xpand thread safe [message #518109 is a reply to message #517900] |
Wed, 03 March 2010 00:38   |
Sven Efftinge Messages: 1667 Registered: July 2009 |
Senior Member |
|
|
zakir Hussain schrieb:
> Hello All,
>
> I am trying to invoke XpandTemplates in different threads, could you
> please suggest me whether Xpand is thread safe.
No it is not.
Cheers,
Sven
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
|
| Re: Is Xpand thread safe [message #518458 is a reply to message #518152] |
Wed, 03 March 2010 21:46  |
Sven Efftinge Messages: 1667 Registered: July 2009 |
Senior Member |
|
|
I'ld say nothing is thread safe.
But at the same time we don't have any global state (besides the EMF
registries) so if you create separate facades with separate execution
contexts and you make sure that you don't modify the state both engines
are wokring on (i.e. the model) or create clones before so, you should
be fine.
Sven
zakir Hussain schrieb:
> Hello Sven,
>
> Thank you very much for the reply.....
>
> in my case for each thread i am using an XpandFacade to invoke
> definition of an Xpand template, so in each thread .xpt and .ext will be
> parsed and loaded in memory for a particular XpandExecutionContext.
>
> Could you please let me know which classes or which modules in Xpand are
> not thread safe...
>
> Thanks in Advance!!
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
Powered by
FUDForum. Page generated in 0.01596 seconds