Qudi
Public Member Functions | Public Attributes | List of all members
core.parentpoller.ParentPollerWindows Class Reference

A Windows-specific daemon thread that listens for a special event that signals an interrupt and, optionally, terminates the program immediately when the parent process no longer exists. More...

Inheritance diagram for core.parentpoller.ParentPollerWindows:
Inheritance graph
[legend]
Collaboration diagram for core.parentpoller.ParentPollerWindows:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, quitfunction=None, interrupt_handle=None, parent_handle=None)
 Create the poller. More...
 
def run (self)
 Run the poll loop. More...
 

Public Attributes

 daemon
 
 interrupt_handle
 
 parent_handle
 

Detailed Description

A Windows-specific daemon thread that listens for a special event that signals an interrupt and, optionally, terminates the program immediately when the parent process no longer exists.

Constructor & Destructor Documentation

◆ __init__()

def core.parentpoller.ParentPollerWindows.__init__ (   self,
  quitfunction = None,
  interrupt_handle = None,
  parent_handle = None 
)

Create the poller.

At least one of the optional parameters must be provided.

Parameters

interrupt_handle HANDLE (int), optional If provided, the program will generate a Ctrl+C event when this handle is signaled.

parent_handle HANDLE (int), optional If provided, the program will terminate immediately when this handle is signaled.

Member Function Documentation

◆ run()

def core.parentpoller.ParentPollerWindows.run (   self)

Run the poll loop.

This method never returns.


The documentation for this class was generated from the following file: