lib.queue_manager Module

Queue Manager for faceswap

NB: Keep this in it’s own module! If it gets loaded from a multiprocess on a Windows System it will break Faceswap

class lib.queue_manager.EventQueue(shutdown_event: Event, maxsize: int = 0)

Standard Queue object with a separate global shutdown parameter indicating that the main process, and by extension this queue, should be shut down.

Parameters:
  • shutdown_event (threading.Event) – The global shutdown event common to all managed queues

  • maxsize (int, Optional) – Upperbound limit on the number of items that can be placed in the queue. Default: 0

property shutdown_event: Event

The global shutdown event

Type:

threading.Event

Classes

EventQueue(shutdown_event[, maxsize])

Standard Queue object with a separate global shutdown parameter indicating that the main process, and by extension this queue, should be shut down.

Variables

queue_manager

Manage EventQueue objects for availabilty across processes.

Class Inheritance Diagram

Inheritance diagram of lib.queue_manager.EventQueue