Douglas C. Schmidt
17 years ago
Hi Ramesh,
The typical way of getting a thread-safe singleton is to use
typedef ACE_Singleton <Your_Class_Goes_Here, ACE_SYNCH_RECURSIVE_MUTEX> MY_SINGLETON;
There are various examples of this in ACE_ROOT/tests if you search for
ACE_Singleton.
Take care,
Doug
The typical way of getting a thread-safe singleton is to use
typedef ACE_Singleton <Your_Class_Goes_Here, ACE_SYNCH_RECURSIVE_MUTEX> MY_SINGLETON;
There are various examples of this in ACE_ROOT/tests if you search for
ACE_Singleton.
Take care,
Doug
I am a newbie to ACE, is there a thread-safe singleton implementation
example in the ACE tarball? I havent exhausted searching the book yet,
but checking to know if there is something already there in the
examples - which I can look at and understand. BTW I have the 5.6.5
version of ace installed.
Thanks
/R
example in the ACE tarball? I havent exhausted searching the book yet,
but checking to know if there is something already there in the
examples - which I can look at and understand. BTW I have the 5.6.5
version of ace installed.
Thanks
/R
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: ***@vanderbilt.edu
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: ***@vanderbilt.edu