Debian Codegraph @

src/later.h

raw symbols SCIP
1 #ifndef _LATER_H_
2 #define _LATER_H_
3
4 #include <memory>
5 #include "callback_registry.h"
6
7 // This should be kept in sync with LATER_H_API_VERSION in
8 // inst/include/later_api.h. Whenever the interface between
9 // inst/include/later_api.h and the code in src/ changes, these values
10 // should be incremented.
11 #define LATER_DLL_API_VERSION 3
12
13 #define GLOBAL_LOOP 0
14
15 std::shared_ptr<CallbackRegistry> getGlobalRegistry();
16
17 bool execCallbacksForTopLevel();
18 bool at_top_level();
19
20 bool execCallbacks(double timeoutSecs, bool runAll, int loop_id);
21 bool idle(int loop);
22
23 void ensureInitialized();
24 // Declare platform-specific functions that are implemented in later_posix.cpp
25 // and later_win32.cpp.
26 void ensureAutorunnerInitialized();
27
28 uint64_t doExecLater(std::shared_ptr<CallbackRegistry> callbackRegistry, Rcpp::Function callback, double delaySecs, bool resetTimer);
29 uint64_t doExecLater(std::shared_ptr<CallbackRegistry> callbackRegistry, void (*callback)(void*), void* data, double delaySecs, bool resetTimer);
30
31 #endif // _LATER_H_