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
13f43fdc
Commit
13f43fdc
authored
11 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
BUILDFIX: mac gcc fix
parent
1225a7a3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/llsingleton.h
+6
-1
6 additions, 1 deletion
indra/llcommon/llsingleton.h
indra/newview/llvocache.h
+1
-1
1 addition, 1 deletion
indra/newview/llvocache.h
with
7 additions
and
2 deletions
indra/llcommon/llsingleton.h
+
6
−
1
View file @
13f43fdc
...
@@ -67,6 +67,11 @@ class LLSingleton : private boost::noncopyable
...
@@ -67,6 +67,11 @@ class LLSingleton : private boost::noncopyable
INITIALIZED
,
INITIALIZED
,
DELETED
DELETED
}
EInitState
;
}
EInitState
;
static
DERIVED_TYPE
*
constructSingleton
()
{
return
new
DERIVED_TYPE
();
}
// stores pointer to singleton instance
// stores pointer to singleton instance
struct
SingletonLifetimeManager
struct
SingletonLifetimeManager
...
@@ -79,7 +84,7 @@ class LLSingleton : private boost::noncopyable
...
@@ -79,7 +84,7 @@ class LLSingleton : private boost::noncopyable
static
void
construct
()
static
void
construct
()
{
{
sData
.
mInitState
=
CONSTRUCTING
;
sData
.
mInitState
=
CONSTRUCTING
;
sData
.
mInstance
=
new
DERIVED_TYPE
();
sData
.
mInstance
=
constructSingleton
();
sData
.
mInitState
=
INITIALIZING
;
sData
.
mInitState
=
INITIALIZING
;
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llvocache.h
+
1
−
1
View file @
13f43fdc
...
@@ -163,7 +163,6 @@ class LLVOCachePartition : public LLViewerOctreePartition, public LLTrace::MemTr
...
@@ -163,7 +163,6 @@ class LLVOCachePartition : public LLViewerOctreePartition, public LLTrace::MemTr
class
LLVOCache
:
public
LLSingleton
<
LLVOCache
>
class
LLVOCache
:
public
LLSingleton
<
LLVOCache
>
{
{
private:
private:
friend
LLSingleton
<
LLVOCache
>
;
struct
HeaderEntryInfo
struct
HeaderEntryInfo
{
{
HeaderEntryInfo
()
:
mIndex
(
0
),
mHandle
(
0
),
mTime
(
0
)
{}
HeaderEntryInfo
()
:
mIndex
(
0
),
mHandle
(
0
),
mTime
(
0
)
{}
...
@@ -194,6 +193,7 @@ class LLVOCache : public LLSingleton<LLVOCache>
...
@@ -194,6 +193,7 @@ class LLVOCache : public LLSingleton<LLVOCache>
typedef
std
::
set
<
HeaderEntryInfo
*
,
header_entry_less
>
header_entry_queue_t
;
typedef
std
::
set
<
HeaderEntryInfo
*
,
header_entry_less
>
header_entry_queue_t
;
typedef
std
::
map
<
U64
,
HeaderEntryInfo
*>
handle_entry_map_t
;
typedef
std
::
map
<
U64
,
HeaderEntryInfo
*>
handle_entry_map_t
;
private
:
private
:
friend
class
LLSingleton
<
LLVOCache
>
;
LLVOCache
()
;
LLVOCache
()
;
public
:
public
:
...
...
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