[project] Lose the battle between tabs & spaces
I'm a tabs guy. I like tabs, it's an elegant way to represent indentation instead of brute-forcing it. But I have to admit that the world seems to be going towards spaces, and tooling tends not to play nice with tabs. So here we go, changing the whole repo to spaces since I'm getting tired of all the inconsistent formatting.
This commit is contained in:
committed by
Justin C. Miller
parent
d36b2d8057
commit
8f529046a9
@@ -3,20 +3,20 @@
|
||||
clock * clock::s_instance = nullptr;
|
||||
|
||||
clock::clock(uint64_t rate, clock::source source_func, void *data) :
|
||||
m_rate(rate),
|
||||
m_data(data),
|
||||
m_source(source_func)
|
||||
m_rate(rate),
|
||||
m_data(data),
|
||||
m_source(source_func)
|
||||
{
|
||||
// TODO: make this atomic
|
||||
if (s_instance == nullptr)
|
||||
s_instance = this;
|
||||
update();
|
||||
// TODO: make this atomic
|
||||
if (s_instance == nullptr)
|
||||
s_instance = this;
|
||||
update();
|
||||
}
|
||||
|
||||
void
|
||||
clock::spinwait(uint64_t us) const
|
||||
{
|
||||
uint64_t when = value() + us;
|
||||
while (value() < when) asm ("pause");
|
||||
uint64_t when = value() + us;
|
||||
while (value() < when) asm ("pause");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user