Skip to content

Provide wrapper for eventfd #85173

Description

@tiran
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']

    Activity

    1. tiran commented on Jun 17, 2020

      @tiran
      MemberAuthor

      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.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Jun 17, 2020
    3. tiran commented on Nov 13, 2020

      @tiran
      MemberAuthor

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

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)end of lifeextension-modulesC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions