summaryrefslogtreecommitdiff
path: root/mthread.hpp
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2023-01-23 18:40:29 -0600
committerBrett Weiland <brett_weiland@bpcspace.com>2023-01-23 18:40:29 -0600
commit713d467385959ac4299e685fffcad7ffff788758 (patch)
treeaddfa77515c14bd7e1a55afb92c099ad7536648c /mthread.hpp
parente6cf67d4ed4ade12c7c830da388194492b07c3e3 (diff)
made mthread class polymorphic, finished commentingmthread_extensibility_improvements
Diffstat (limited to 'mthread.hpp')
-rw-r--r--mthread.hpp4
1 files changed, 2 insertions, 2 deletions
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<double> c_min, std::complex<double> 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<uint32_t>& 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();