mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-03 16:48:52 +02:00
code blocks
git-svn-id: svn://elaine/murooma/trunk@271 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
2cf7855261
commit
16ef1ae634
53 changed files with 2074 additions and 1759 deletions
|
@ -5,27 +5,27 @@
|
|||
|
||||
class TimeProvider
|
||||
{
|
||||
public:
|
||||
static TimeProvider& getInstance()
|
||||
{
|
||||
static TimeProvider instance;
|
||||
return instance;
|
||||
}
|
||||
public:
|
||||
static TimeProvider& getInstance()
|
||||
{
|
||||
static TimeProvider instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
void setDiffToServer(double ms);
|
||||
long getDiffToServer();
|
||||
long getDiffToServerMs();
|
||||
void setDiffToServer(double ms);
|
||||
long getDiffToServer();
|
||||
long getDiffToServerMs();
|
||||
|
||||
private:
|
||||
TimeProvider(); // Constructor? (the {} brackets) are needed here.
|
||||
// Dont forget to declare these two. You want to make sure they
|
||||
// are unaccessable otherwise you may accidently get copies of
|
||||
// your singleton appearing.
|
||||
TimeProvider(TimeProvider const&); // Don't Implement
|
||||
void operator=(TimeProvider const&); // Don't implement
|
||||
private:
|
||||
TimeProvider(); // Constructor? (the {} brackets) are needed here.
|
||||
// Dont forget to declare these two. You want to make sure they
|
||||
// are unaccessable otherwise you may accidently get copies of
|
||||
// your singleton appearing.
|
||||
TimeProvider(TimeProvider const&); // Don't Implement
|
||||
void operator=(TimeProvider const&); // Don't implement
|
||||
|
||||
DoubleBuffer<long> diffBuffer;
|
||||
long diffToServer;
|
||||
DoubleBuffer<long> diffBuffer;
|
||||
long diffToServer;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue