mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 07:36:36 +02:00
removed mutex locking from VoxelTree for now
This commit is contained in:
parent
9d6c53a535
commit
c364ec0dc7
1 changed files with 0 additions and 37 deletions
|
@ -63,45 +63,8 @@
|
||||||
#include "ViewFrustum.h"
|
#include "ViewFrustum.h"
|
||||||
#include <fstream> // to load voxels from file
|
#include <fstream> // to load voxels from file
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
using voxels_lib::printLog;
|
using voxels_lib::printLog;
|
||||||
|
|
||||||
|
|
||||||
void debugThreadError(const char* message, int err) {
|
|
||||||
switch (err) {
|
|
||||||
case EINVAL:
|
|
||||||
printf("%s -> EINVAL\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EBUSY:
|
|
||||||
printf("%s -> EBUSY\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EAGAIN:
|
|
||||||
printf("%s -> EAGAIN\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EDEADLK:
|
|
||||||
printf("%s -> EDEADLK\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EPERM:
|
|
||||||
printf("%s -> EPERM\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EINTR:
|
|
||||||
printf("%s -> EINTR\n",message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
printf("%s -> %d\n",message,err);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int boundaryDistanceForRenderLevel(unsigned int renderLevel) {
|
int boundaryDistanceForRenderLevel(unsigned int renderLevel) {
|
||||||
switch (renderLevel) {
|
switch (renderLevel) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in a new issue