classification
Title: Provide wrapper for eventfd
Type: enhancement Stage: resolved
Components: Extension Modules, Library (Lib) Versions: Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes
Priority: normal Keywords: patch

Created on 2020-06-17 10:22 by christian.heimes, last changed 2020-11-13 18:49 by christian.heimes. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20930 merged christian.heimes, 2020-06-17 10:25
Messages (2)
msg371727 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-06-17 10:22
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.
msg380922 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-11-13 18:49
New changeset cd9fed6afba6f3ad2e7ef723501c739551a95fa8 by Christian Heimes in branch 'master':
bpo-41001: Add os.eventfd() (#20930)
https://github.com/python/cpython/commit/cd9fed6afba6f3ad2e7ef723501c739551a95fa8
History
Date User Action Args
2020-11-13 18:49:17christian.heimessetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-11-13 18:49:00christian.heimessetmessages: + msg380922
2020-06-17 15:34:48christian.heimeslinkissue40485 dependencies
2020-06-17 10:34:18christian.heimessettype: enhancement
2020-06-17 10:25:51christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request20109
2020-06-17 10:22:48christian.heimescreate