openshot-audio
0.1.7
JuceLibraryCode
modules
juce_core
threads
juce_HighResolutionTimer.h
Go to the documentation of this file.
1
/*
2
==============================================================================
3
4
This file is part of the juce_core module of the JUCE library.
5
Copyright (c) 2015 - ROLI Ltd.
6
7
Permission to use, copy, modify, and/or distribute this software for any purpose with
8
or without fee is hereby granted, provided that the above copyright notice and this
9
permission notice appear in all copies.
10
11
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
18
------------------------------------------------------------------------------
19
20
NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21
All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22
using any other modules, be sure to check that you also comply with their license.
23
24
For more details, visit www.juce.com
25
26
==============================================================================
27
*/
28
29
#ifndef JUCE_HIGHRESOLUTIONTIMER_H_INCLUDED
30
#define JUCE_HIGHRESOLUTIONTIMER_H_INCLUDED
31
46
class
JUCE_API
HighResolutionTimer
47
{
48
protected
:
52
HighResolutionTimer
();
53
54
public
:
56
virtual
~
HighResolutionTimer
();
57
58
//==============================================================================
67
virtual
void
hiResTimerCallback() = 0;
68
69
//==============================================================================
79
void
startTimer (
int
intervalInMilliseconds);
80
87
void
stopTimer();
88
92
bool
isTimerRunning()
const
noexcept
;
93
97
int
getTimerInterval()
const
noexcept
;
98
99
private
:
100
struct
Pimpl
;
101
friend
struct
Pimpl
;
102
friend
struct
ContainerDeletePolicy
<
Pimpl
>;
103
ScopedPointer<Pimpl>
pimpl;
104
105
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR
(
HighResolutionTimer
)
106
};
107
108
109
#endif // JUCE_HIGHRESOLUTIONTIMER_H_INCLUDED
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Definition:
juce_PlatformDefs.h:198
ContainerDeletePolicy
Definition:
juce_ContainerDeletePolicy.h:44
HighResolutionTimer::Pimpl
Definition:
juce_posix_SharedCode.h:1148
JUCE_API
#define JUCE_API
Definition:
juce_StandardHeader.h:139
ScopedPointer
Definition:
juce_ScopedPointer.h:70
noexcept
#define noexcept
Definition:
juce_CompilerSupport.h:141
HighResolutionTimer
Definition:
juce_HighResolutionTimer.h:46
Generated by
1.8.17