More header optimizations.
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
#include "Atomic.h"
|
||||
#include "ThreadPool.h"
|
||||
|
||||
#include "nvcore/Utils.h" // toI32
|
||||
|
||||
using namespace nv;
|
||||
|
||||
#define ENABLE_PARALLEL_FOR 0
|
||||
@ -52,7 +54,7 @@ void ParallelFor::run(uint count) {
|
||||
|
||||
nvDebugCheck(idx >= count);
|
||||
#else
|
||||
for (int i = 0; i < count; i++) {
|
||||
for (int i = 0; i < toI32(count); i++) {
|
||||
task(context, i);
|
||||
}
|
||||
#endif
|
||||
|
@ -1,8 +1,8 @@
|
||||
// This code is in the public domain -- castano@gmail.com
|
||||
|
||||
#pragma once
|
||||
#ifndef NV_THREAD_THREADPOOL_H
|
||||
#define NV_THREAD_THREADPOOL_H
|
||||
// This code is in the public domain -- castano@gmail.com
|
||||
|
||||
#pragma once
|
||||
#ifndef NV_THREAD_THREADPOOL_H
|
||||
#define NV_THREAD_THREADPOOL_H
|
||||
|
||||
#include "nvthread.h"
|
||||
|
||||
|
Reference in New Issue
Block a user