add block 'ambient-occlusion' property
This commit is contained in:
@@ -200,7 +200,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void enqueueJob(std::shared_ptr<T> job) {
|
||||
void enqueueJob(const std::shared_ptr<T>& job) {
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(jobsMutex);
|
||||
jobs.push(job);
|
||||
@@ -244,6 +244,10 @@ public:
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
uint getWorkersCount() const {
|
||||
return threads.size();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
|
||||
@@ -20,11 +20,11 @@ namespace timeutil {
|
||||
* ...
|
||||
* }
|
||||
*/
|
||||
class ScopeLogTimer : public Timer{
|
||||
long long scopeid_;
|
||||
public:
|
||||
ScopeLogTimer(long long id);
|
||||
~ScopeLogTimer();
|
||||
class ScopeLogTimer : public Timer {
|
||||
long long scopeid_;
|
||||
public:
|
||||
ScopeLogTimer(long long id);
|
||||
~ScopeLogTimer();
|
||||
};
|
||||
|
||||
inline constexpr float time_value(float hour, float minute, float second) {
|
||||
|
||||
Reference in New Issue
Block a user