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[source]

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[source]

Base worker thread for capture tasks.

start()[source]

Start the capture worker thread.

stop()[source]

Stop the capture worker thread.

enqueue(job: BaseJob) bool[source]

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[source]

Query the current size of the job queue.