comparison foosdk/sdk/foobar2000/SDK/timer.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
1 #pragma once
2 #include <functional>
3 #include "completion_notify.h"
4
5 #if FOOBAR2020
6 namespace fb2k {
7 //! \since 2.0
8 class NOVTABLE timerManager : public service_base {
9 FB2K_MAKE_SERVICE_COREAPI(timerManager);
10 public:
11 virtual objRef addTimer( double interval, completion_notify::ptr callback ) = 0;
12 };
13
14 objRef registerTimer( double interval, std::function<void ()> func );
15 void callLater( double timeAfter, std::function< void () > func );
16 }
17 #endif // FOOBAR2020