Skip to content

Commit

Permalink
remove orphaned queue
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Nov 4, 2024
1 parent c220dae commit 36abbde
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions wigglecam/services/backends/cameras/abstractbackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,13 @@
import logging
from abc import ABC, abstractmethod
from dataclasses import dataclass
from pathlib import Path
from queue import Queue
from threading import Barrier, BrokenBarrierError, Condition, Event

from ....utils.stoppablethread import StoppableThread

logger = logging.getLogger(__name__)


@dataclass
class BackendRequest:
pass
# nothing to align here until today... maybe here we could add later a skip-frame command or something...


@dataclass
class BackendItem:
# request: BackendRequest
filepath: Path = None
# metadata: dict = None


class StreamingOutput(io.BufferedIOBase):
"""Lores data class used for streaming.
Used in hardware accelerated MJPEGEncoder
Expand Down Expand Up @@ -60,8 +45,6 @@ def __init__(self):
self._barrier: Barrier = None
self._current_timestampset: TimestampSet = None
self._align_timestampset: TimestampSet = None
self._queue_in: Queue[BackendRequest] = None
self._queue_out: Queue[BackendItem] = None

# init
self._started_evt = Event()
Expand Down Expand Up @@ -92,8 +75,6 @@ def start(self, nominal_framerate: int = None):
self._barrier = Barrier(3, action=self.get_timestamps_to_align)
self._current_timestampset = TimestampSet(None, None)
self._align_timestampset = TimestampSet(None, None)
self._queue_in: Queue[BackendRequest] = Queue()
self._queue_out: Queue[BackendItem] = Queue()

self._camera_thread = StoppableThread(name="_camera_thread", target=self._camera_fun, args=(), daemon=True)
self._camera_thread.start()
Expand Down

0 comments on commit 36abbde

Please sign in to comment.