Skip to content

posix: implement timer_getoverrun() #60171

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

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

harshilbhatt2001
Copy link
Contributor

@harshilbhatt2001 harshilbhatt2001 commented Jul 7, 2023

Address missing POSIX function and tests

Fixes #59956

@harshilbhatt2001 harshilbhatt2001 requested a review from cfriedt as a code owner July 7, 2023 21:24
@zephyrbot zephyrbot added the area: POSIX POSIX API Library label Jul 7, 2023
@@ -77,6 +77,10 @@ extern "C" {
#define TIMER_ABSTIME 4
#endif

#ifndef DELAYTIMER_MAX
#define DELAYTIMER_MAX 20
Copy link
Member

@cfriedt cfriedt Jul 9, 2023

Choose a reason for hiding this comment

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

If you remove the #ifndef, does it break anything? That would be better if possible.

Also, it might make more sense to create a Kconfig option for this rather than hard-coding it.
e.g.

if TIMER

config POSIX_TIMER_DELAYTIMER_MAX
	int "Maximum count returned by timer_getoverrun()"
	default 20
	help
	  ...

endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you remove the #ifndef, does it break anything? That would be better if possible.

It does not break anything.

@cfriedt cfriedt requested a review from ycsin July 9, 2023 11:17
Address missing POSIX function and tests zephyrproject-rtos#59956

Signed-off-by: Harshil Bhatt <[email protected]>
Copy link
Member

@ycsin ycsin left a comment

Choose a reason for hiding this comment

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

LGTM

@carlescufi carlescufi merged commit 8b2a419 into zephyrproject-rtos:main Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

posix: implement timer_getoverrun()
5 participants