Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_progress.h
| Context not available. | |||||
| return cancel_message; | return cancel_message; | ||||
| } | } | ||||
| void set_cancel_callback(boost::function<void(void)> function) | void set_cancel_callback(function<void(void)> function) | ||||
| { | { | ||||
| cancel_cb = function; | cancel_cb = function; | ||||
| } | } | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| void set_update_callback(boost::function<void(void)> function) | void set_update_callback(function<void(void)> function) | ||||
| { | { | ||||
| update_cb = function; | update_cb = function; | ||||
| } | } | ||||
| Context not available. | |||||
| protected: | protected: | ||||
| thread_mutex progress_mutex; | thread_mutex progress_mutex; | ||||
| thread_mutex update_mutex; | thread_mutex update_mutex; | ||||
| boost::function<void(void)> update_cb; | function<void(void)> update_cb; | ||||
| boost::function<void(void)> cancel_cb; | function<void(void)> cancel_cb; | ||||
| int tile; /* counter for rendered tiles */ | int tile; /* counter for rendered tiles */ | ||||
| int sample; /* counter of rendered samples, global for all tiles */ | int sample; /* counter of rendered samples, global for all tiles */ | ||||
| Context not available. | |||||