[Ace-users] Re: [ciao-users] About static variables usage in CIAO components

Gan Deng gan.deng at vanderbilt.edu
Fri Jun 22 11:06:29 CDT 2007


san tos wrote:
> Hi,
> I have a variable in one facet method that needs to keep its value 
> during component execution. Is it safe to use static variables in 
> component facet methods?
> Are component facet methods multithreaded?

There should be no difference when implementing component executors of 
CIAO compared with implementing servants in TAO. You are free to use 
static method, but once you choose to configure CIAO with multi 
threaded, it is you developer who should be responsible for thread safe 
and reentrant in your executor code.



More information about the Ace-users mailing list