Skip to content

Pcntl getcpu sol #14188

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

Closed
wants to merge 2 commits into from
Closed

Pcntl getcpu sol #14188

wants to merge 2 commits into from

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented May 9, 2024

No description provided.

Comment on lines 10 to 11
AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx pidfd_open])
AC_CHECK_FUNCS([sched_setaffinity pthread_set_qos_class_self_np getcpuid])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
AC_CHECK_FUNCS([getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx pidfd_open])
AC_CHECK_FUNCS([sched_setaffinity pthread_set_qos_class_self_np getcpuid])
AC_CHECK_FUNCS(m4_normalize([
getpriority
setpriority
wait3
wait4
sigwaitinfo
sigtimedwait
unshare
rfork
forkx
pidfd_open
sched_setaffinity
pthread_set_qos_class_self_np
getcpuid
]))

The m4_normalize can be used to simplify this a bit. And also these can be sorted alphabetically.

  AC_CHECK_FUNCS(m4_normalize([
    forkx
    getcpuid
    getpriority
    pidfd_open
    pthread_set_qos_class_self_np
    rfork
    sched_setaffinity
    setpriority
    sigtimedwait
    sigwaitinfo
    unshare
    wait3
    wait4
  ]))

@devnexen devnexen force-pushed the pcntl_getcpu_sol branch from e7fbd69 to 03a4646 Compare May 9, 2024 22:02
@devnexen devnexen closed this in 19c8a10 May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants