Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631970
timer.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
523 B
Referenced Files
None
Subscribers
None
timer.cpp
View Options
#include
"r-tech1/system/timer.h"
using
std
::
vector
;
namespace
System
{
volatile
bool
run_timer
;
Util
::
Thread
::
Lock
run_timer_lock
;
Util
::
ThreadBoolean
run_timer_guard
(
run_timer
,
run_timer_lock
);
std
::
vector
<
Util
::
Thread
::
Id
>
running_timers
;
void
closeTimers
(){
run_timer_guard
.
set
(
false
);
for
(
vector
<
Util
::
Thread
::
Id
>::
iterator
it
=
running_timers
.
begin
();
it
!=
running_timers
.
end
();
it
++
){
Util
::
Thread
::
Id
timer
=
*
it
;
Util
::
Thread
::
joinThread
(
timer
);
}
running_timers
.
clear
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 1:14 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
133149
Default Alt Text
timer.cpp (523 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline