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

Provide wrapper for eventfd #85173

Closed
tiran opened this issue Jun 17, 2020 · 2 comments
Closed

Provide wrapper for eventfd #85173

tiran opened this issue Jun 17, 2020 · 2 comments
Labels
3.10 only security fixes extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@tiran
Copy link
Member

tiran commented Jun 17, 2020

BPO 41001
Nosy @tiran
PRs
  • bpo-41001: Add os.eventfd() #20930
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-11-13.18:49:17.968>
    created_at = <Date 2020-06-17.10:22:48.334>
    labels = ['extension-modules', 'type-feature', 'library', '3.10']
    title = 'Provide wrapper for eventfd'
    updated_at = <Date 2021-08-07.04:51:45.767>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2021-08-07.04:51:45.767>
    actor = '4-launchpad-kalvdans-no-ip-org'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-13.18:49:17.968>
    closer = 'christian.heimes'
    components = ['Extension Modules', 'Library (Lib)']
    creation = <Date 2020-06-17.10:22:48.334>
    creator = 'christian.heimes'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41001
    keywords = ['patch']
    message_count = 2.0
    messages = ['371727', '380922']
    nosy_count = 2.0
    nosy_names = ['christian.heimes', '4-launchpad-kalvdans-no-ip-org']
    pr_nums = ['20930']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41001'
    versions = ['Python 3.10']

    @tiran
    Copy link
    Member Author

    tiran commented Jun 17, 2020

    eventfd is a Linux syscall that returns a file descriptor for event/notify systems. I propse to add a simple eventfd(initval, flags) function that is a wrapper around glibc's eventfd abstraction layer. High level notify and semaphores can then be implemented in pure Python.

    See https://man7.org/linux/man-pages/man2/eventfd.2.html for more details

    See https://bugs.python.org/issue40485 for a use case.

    @tiran tiran added 3.10 only security fixes extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 17, 2020
    @tiran
    Copy link
    Member Author

    tiran commented Nov 13, 2020

    New changeset cd9fed6 by Christian Heimes in branch 'master':
    bpo-41001: Add os.eventfd() (bpo-20930)
    cd9fed6

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.10 only security fixes extension-modules C modules in the Modules dir stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant