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

Add API for checking if time-critical jobs are pending #254

Closed
terrillmoore opened this issue Mar 18, 2019 · 1 comment
Closed

Add API for checking if time-critical jobs are pending #254

terrillmoore opened this issue Mar 18, 2019 · 1 comment
Assignees

Comments

@terrillmoore
Copy link
Member

When we're doing work in the background with the LMIC running in the foreground, we need a way to defer what we're doing to real-time future deadlines. Add an API,

bit_t os_queryTimeCriticalJobs(ostime_t time);

This API shall return true if any scheduled events should occur before time OS ticks have passed. This allows code to avoid starting a long computation if it would collide with a pending event for the LMIC.

@terrillmoore
Copy link
Member Author

Committing as part of #215.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant