Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
1a01542e
Commit
1a01542e
authored
12 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
BUILDFIX: singleton unit test could not resurrect singleton
parent
5622a474
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llsingleton.h
+6
-0
6 additions, 0 deletions
indra/llcommon/llsingleton.h
with
6 additions
and
0 deletions
indra/llcommon/llsingleton.h
+
6
−
0
View file @
1a01542e
...
...
@@ -77,6 +77,11 @@ class LLSingleton : private boost::noncopyable
SingletonInstanceData
()
:
mSingletonInstance
(
NULL
),
mInitState
(
CONSTRUCTING
)
{
construct
();
}
void
construct
()
{
mSingletonInstance
=
new
DERIVED_TYPE
();
mInitState
=
INITIALIZING
;
...
...
@@ -139,6 +144,7 @@ class LLSingleton : private boost::noncopyable
if
(
data
.
mInitState
==
DELETED
)
{
llwarns
<<
"Trying to access deleted singleton "
<<
typeid
(
DERIVED_TYPE
).
name
()
<<
" creating new instance"
<<
llendl
;
data
.
construct
();
}
if
(
data
.
mInitState
==
INITIALIZING
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment