Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print hello world from timer callbacks #159

Merged
merged 2 commits into from
Dec 19, 2016
Merged

print hello world from timer callbacks #159

merged 2 commits into from
Dec 19, 2016

Conversation

codebot
Copy link
Member

@codebot codebot commented Dec 18, 2016

as far as I understand, this is the simplest possible example of a wall timer.

@codebot codebot added the in progress Actively being worked on (Kanban column) label Dec 18, 2016
MinimalTimer()
: Node("minimal_timer")
{
auto timer_callback = [this]() -> void { printf("Hello, world!\n"); };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to capture this I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha! indeed, you're right. I simplified it. I'll kick off a CI now just to be sure it's fine on all platforms.

@codebot
Copy link
Member Author

codebot commented Dec 19, 2016

  • Linux:
    • Build Status
  • OS X:
    • Build Status
  • Windows:
    • Build Status

@codebot
Copy link
Member Author

codebot commented Dec 19, 2016

Test failures are unrelated. Merging now.

@codebot codebot merged commit b57f959 into master Dec 19, 2016
@codebot codebot removed the in progress Actively being worked on (Kanban column) label Dec 19, 2016
@codebot codebot deleted the timer_examples branch December 19, 2016 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants