mini_arcade_core.runtime.capture.base_worker

Base worker thread for capture tasks.

Classes

BaseJob

Base job for worker threads.

BaseWorker

Base worker thread for capture tasks.

Module Contents

class mini_arcade_core.runtime.capture.base_worker.BaseJob

Base job for worker threads.

Variables:

(str) (job_id) – Unique identifier for the job.

job_id: str
class mini_arcade_core.runtime.capture.base_worker.BaseWorker

Base worker thread for capture tasks.

start()

Start the capture worker thread.

stop()

Stop the capture worker thread.

enqueue(job: BaseJob) bool

Enqueue a capture job.

Parameters:

job (CaptureJob) – CaptureJob to enqueue.

Returns:

True if the job was enqueued successfully, False otherwise.

Return type:

bool

qsize() int

Query the current size of the job queue.