From 713d467385959ac4299e685fffcad7ffff788758 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Mon, 23 Jan 2023 18:40:29 -0600 Subject: made mthread class polymorphic, finished commenting --- mthread.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mthread.hpp') diff --git a/mthread.hpp b/mthread.hpp index 953d021..bd1853e 100644 --- a/mthread.hpp +++ b/mthread.hpp @@ -33,7 +33,7 @@ class mthread { std::complex c_min, std::complex c_max, unsigned int inf_cutoff, unsigned int max_iter, png& image, double *g_vmap, unsigned int *g_histogram, mthread **worker_list, unsigned int id, unsigned int jobs, std::atomic& progress); - ~mthread(); + virtual ~mthread(); //virtual in case a modified renderer needs to allocate memory void join(); void dispatch(); @@ -64,7 +64,7 @@ class mthread { int state; struct mthread_divinfo divide(); - void render_area(); + virtual void render_area(); void run(); bool find_work(); -- cgit v1.2.3