A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006087.html below:

[Python-Dev] Adding poll() system call

[Python-Dev] Adding poll() system call [Python-Dev] Adding poll() system callJeremy Hylton jeremy@beopen.com
Tue, 11 Jul 2000 11:52:05 -0400 (EDT)
If we're adding poll to enhance scalability, I'd like to see a more
efficient interface that generates the poll_fd* separately from
calling poll.

The interface would be something like this:

obj = poll.new() # generate a new pollfd array
obj.register(f1, POLLIN | POLLOUT)
obj.register(f2, POLLOUT)
obj.poll()
obj.unregister(f2)
obj.poll()

I think this would be a lot more efficient when the files being polled
don't change very often.

Jeremy



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4