summaryrefslogtreecommitdiff
path: root/mthread.hpp
diff options
context:
space:
mode:
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();