erebus
diff liberebus/src/erebus_impl.h @ 24:4336acf8389d
implemented thread pool. not using it yet.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 May 2014 06:56:44 +0300 |
parents | e9da2916bc79 |
children | c8a6fb04fefa |
line diff
1.1 --- a/liberebus/src/erebus_impl.h Thu May 29 07:47:52 2014 +0300 1.2 +++ b/liberebus/src/erebus_impl.h Fri May 30 06:56:44 2014 +0300 1.3 @@ -6,6 +6,7 @@ 1.4 #include "erebus.h" 1.5 #include "image.h" 1.6 #include "scene.h" 1.7 +#include "threadpool.h" 1.8 1.9 struct Option { 1.10 enum Type { INT, FLOAT, VEC } type; 1.11 @@ -28,6 +29,8 @@ 1.12 Image<float> accum; // sample accumulator per pixel 1.13 Option options[ERB_NUM_OPTIONS]; 1.14 1.15 + ThreadPool tpool; 1.16 + 1.17 // render state 1.18 float inv_gamma; 1.19 long cur_time;