|
| using | key_type = std::uintptr_t |
| | A key_type value is used to distinguish between different callbacks that are attached to the heartbeat thread. More...
|
| |
|
using | callback = std::function< void(key_type)> |
| |
|
|
static std::shared_ptr< heartbeat > | get () |
| |
|
template<typename T > |
| static key_type | to_key_type (T *t) |
| | A small convenience function which will convert a pointer to key_type.
|
| |
◆ key_type
A key_type value is used to distinguish between different callbacks that are attached to the heartbeat thread.
When attaching a callback, provide a unique that identifies it. This same value is passed to the function when it is called and may be used as the argument to detach() when it is time so stop that callback being invoked.
The documentation for this class was generated from the following files: