More header optimizations.

This commit is contained in:
castano
2011-10-11 18:52:24 +00:00
parent d11d7a5f38
commit e98d795d2b
12 changed files with 1227 additions and 1217 deletions

View File

@ -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

View File

@ -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"