Package portage :: Package util :: Package _eventloop :: Module EventLoop
[hide private]

Module EventLoop

source code

Classes [hide private]
  EventLoop
An event loop, intended to be compatible with the GLib event loop.
  _epoll_adapter
Wraps a select.epoll instance in order to make it compatible with select.poll instances.
Functions [hide private]
bool
can_poll_device()
Test if it's possible to use poll() on a device such as a pty.
source code
 
create_poll_instance()
Create an instance of select.poll, or an instance of PollSelectAdapter there is no poll() implementation or it is broken somehow.
source code
Variables [hide private]
  _can_poll_device = None
hash(x)
  __package__ = 'portage.util._eventloop'

Imports: errno, logging, os, select, signal, sys, time, fcntl, threading, writemsg_level, SlotObject, PollConstants, PollSelectAdapter


Function Details [hide private]

can_poll_device()

source code 

Test if it's possible to use poll() on a device such as a pty. This is known to fail on Darwin.

Returns: bool
True if poll() on a device succeeds, False otherwise.