Page MenuHomePhabricator (Chris)

timer.cpp
No OneTemporary

Authored By
Unknown
Size
523 B
Referenced Files
None
Subscribers
None

timer.cpp

#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

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)

Event Timeline