summaryrefslogtreecommitdiff
path: root/mthread.hpp
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2023-01-23 19:11:54 -0600
committerBrett Weiland <brett_weiland@bpcspace.com>2023-01-23 19:11:54 -0600
commite63ea4982577f13523e5e97d4de6fc779fbc980d (patch)
treeaddfa77515c14bd7e1a55afb92c099ad7536648c /mthread.hpp
parentcbe23199c794d62fe84c4522d2209641f7107980 (diff)
parent713d467385959ac4299e685fffcad7ffff788758 (diff)
fixed readme conflict
Diffstat (limited to 'mthread.hpp')
-rw-r--r--mthread.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/mthread.hpp b/mthread.hpp
index c70647e..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();
@@ -61,9 +61,14 @@ class mthread {
uint32_t x_min, x_max, y_min, y_max;
uint32_t on_x, on_y;
unsigned int divisions;
- void render();
int state;
struct mthread_divinfo divide();
+
+ virtual void render_area();
+
+ void run();
+ bool find_work();
+ void check_work_request();
};