mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an OS X 10.5 compatible std::function replacement
This commit is contained in:
parent
db346fea6d
commit
f4046909ab
20 changed files with 472 additions and 47 deletions
|
|
@ -341,7 +341,6 @@ void JUCE_CALLTYPE Timer::callPendingTimersSynchronously()
|
|||
TimerThread::instance->callTimersSynchronously();
|
||||
}
|
||||
|
||||
#if JUCE_COMPILER_SUPPORTS_LAMBDAS
|
||||
struct LambdaInvoker : private Timer
|
||||
{
|
||||
LambdaInvoker (int milliseconds, std::function<void()> f) : function (f)
|
||||
|
|
@ -365,4 +364,3 @@ void JUCE_CALLTYPE Timer::callAfterDelay (int milliseconds, std::function<void()
|
|||
{
|
||||
new LambdaInvoker (milliseconds, f);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue