Skip to content

callback (not lambda) function example #12

@timbo100

Description

@timbo100

@eglimi Thank you very much for this utility. I'm hoping to use it on a C++ application I've been developing.

I often prefer to use callback functions instead of lambda's, if possible.

I would appreciate a C++ (gcc) example that exemplifies the following:

  • A C++ class member function that is defined and used for timer callback
  • t.add() call that passes the member function, along with one-shot or repeat timeout params
  • at least to pending timers.
  • for example encapsulate this case in a class that when constructed from main() will create timer as member and add however timing events and each timed event added invokes a different callback that is a member function.

This example will be a good one that I can better understand how to deply. Thanks you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions