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
4a90678c
Commit
4a90678c
authored
7 years ago
by
AndreyL ProductEngine
Browse files
Options
Downloads
Patches
Plain Diff
Linux buildfix; this should be reverted after gcc update to 4.7+
parent
62337973
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/lleventfilter.h
+5
-5
5 additions, 5 deletions
indra/llcommon/lleventfilter.h
indra/llcommon/tests/lleventfilter_test.cpp
+5
-5
5 additions, 5 deletions
indra/llcommon/tests/lleventfilter_test.cpp
with
10 additions
and
10 deletions
indra/llcommon/lleventfilter.h
+
5
−
5
View file @
4a90678c
...
...
@@ -336,11 +336,11 @@ class LLEventThrottle: public LLEventThrottleBase
LLEventThrottle
(
LLEventPump
&
source
,
F32
interval
);
private:
virtual
void
alarmActionAfter
(
F32
interval
,
const
LLEventTimeoutBase
::
Action
&
action
)
override
;
virtual
bool
alarmRunning
()
const
override
;
virtual
void
alarmCancel
()
override
;
virtual
void
timerSet
(
F32
interval
)
override
;
virtual
F32
timerGetRemaining
()
const
override
;
virtual
void
alarmActionAfter
(
F32
interval
,
const
LLEventTimeoutBase
::
Action
&
action
)
/*
override
*/
;
virtual
bool
alarmRunning
()
const
/*
override
*/
;
virtual
void
alarmCancel
()
/*
override
*/
;
virtual
void
timerSet
(
F32
interval
)
/*
override
*/
;
virtual
F32
timerGetRemaining
()
const
/*
override
*/
;
// use this to arrange a deferred flush() call
LLEventTimeout
mAlarm
;
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/tests/lleventfilter_test.cpp
+
5
−
5
View file @
4a90678c
...
...
@@ -88,29 +88,29 @@ class TestEventThrottle: public LLEventThrottleBase
{}
/*----- implementation of LLEventThrottleBase timing functionality -----*/
virtual
void
alarmActionAfter
(
F32
interval
,
const
LLEventTimeoutBase
::
Action
&
action
)
override
virtual
void
alarmActionAfter
(
F32
interval
,
const
LLEventTimeoutBase
::
Action
&
action
)
/*
override
*/
{
mAlarmRemaining
=
interval
;
mAlarmAction
=
action
;
}
virtual
bool
alarmRunning
()
const
override
virtual
bool
alarmRunning
()
const
/*
override
*/
{
// decrementing to exactly 0 should mean the alarm fires
return
mAlarmRemaining
>
0
;
}
virtual
void
alarmCancel
()
override
virtual
void
alarmCancel
()
/*
override
*/
{
mAlarmRemaining
=
-
1
;
}
virtual
void
timerSet
(
F32
interval
)
override
virtual
void
timerSet
(
F32
interval
)
/*
override
*/
{
mTimerRemaining
=
interval
;
}
virtual
F32
timerGetRemaining
()
const
override
virtual
F32
timerGetRemaining
()
const
/*
override
*/
{
// LLTimer.getRemainingTimeF32() never returns negative; 0.0 means expired
return
(
mTimerRemaining
>
0.0
)
?
mTimerRemaining
:
0.0
;
...
...
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