Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/util_progress.h
| Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | public: | ||||
| void increment_sample() | void increment_sample() | ||||
| { | { | ||||
| thread_scoped_lock lock(progress_mutex); | thread_scoped_lock lock(progress_mutex); | ||||
| sample++; | sample++; | ||||
| } | } | ||||
| void increment_sample_update() | |||||
| { | |||||
| increment_sample(); | |||||
| set_update(); | |||||
| } | |||||
| int get_sample() | int get_sample() | ||||
| { | { | ||||
| return sample; | return sample; | ||||
| } | } | ||||
| /* status messages */ | /* status messages */ | ||||
| void set_status(const string& status_, const string& substatus_ = "") | void set_status(const string& status_, const string& substatus_ = "") | ||||
| ▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines | |||||