Cogl.PollFD

Fields

Name Type Access Description
events int r/w A bitmask of events to block on
fd int r/w The file descriptor to block on
revents int r/w A bitmask of returned events

Methods

None

Details

class Cogl.PollFD

A struct for describing the state of a file descriptor that Cogl needs to block on. The events field contains a bitmask of Cogl.PollFDEvent s that should cause the application to wake up. After the application is woken up from idle it should pass back an array of Cogl.PollFD s to Cogl and update the revents mask to the actual events that occurred on the file descriptor.

Note that Cogl.PollFD is deliberately exactly the same as struct pollfd on Unix so that it can simply be cast when calling poll.

New in version 1.10.