opencv-java / getting-started

Getting started with OpenCV and JavaFX
105 stars 176 forks source link

Move Thread to Executor #6

Closed luigidr closed 7 years ago

luigidr commented 8 years ago

Generally, it is "better" to prefer the Java Executor to classical Thread.

If possible, replace the processFrame thread with an Executor object or with a JavaFX object suitable for concurrency (i.e., from javafx.concurrent).

luigidr commented 7 years ago

Moved to a ScheduledExecutorService to avoid plain Threads and to limiting any possible side effects of capturing a videostream by a "continuous" while().

Closed by 9c41d9323095b4ca7e57abadbfaca5ef0d64760a.