mirror of
https://github.com/Cubitect/cubiomes.git
synced 2025-09-25 04:51:03 -04:00
Add comments noting some not-thread-safe functions.
This commit is contained in:
parent
9ac742d56b
commit
6558f5b7a6
@ -660,6 +660,8 @@ void baseQuadTempleSearch(const char *fnam, const int threads, const int quality
|
||||
/* getBiomeAtPos
|
||||
* ----------------
|
||||
* Returns the biome for the specified block position.
|
||||
* (Alternatives should be considered in performance critical code.)
|
||||
* This function is not threadsafe.
|
||||
*/
|
||||
int getBiomeAtPos(const LayerStack g, const Pos pos)
|
||||
{
|
||||
|
@ -126,6 +126,7 @@ void baseQuadTempleSearch(const char *fnam, int threads, int quality);
|
||||
* ----------------
|
||||
* Returns the biome for the specified block position.
|
||||
* (Alternatives should be considered in performance critical code.)
|
||||
* This function is not threadsafe.
|
||||
*/
|
||||
int getBiomeAtPos(const LayerStack g, const Pos pos);
|
||||
|
||||
|
1
layers.c
1
layers.c
@ -861,6 +861,7 @@ void mapBiomeEdge(Layer *l, int * __restrict out, int areaX, int areaZ, int area
|
||||
}
|
||||
|
||||
|
||||
/* This function is not threadsafe. */
|
||||
void mapHills(Layer *l, int * __restrict out, int areaX, int areaZ, int areaWidth, int areaHeight)
|
||||
{
|
||||
int pX = areaX - 1;
|
||||
|
1
layers.h
1
layers.h
@ -376,6 +376,7 @@ void mapDeepOcean(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
void mapBiome(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
void mapRiverInit(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
void mapBiomeEdge(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
/* This function is not threadsafe. */
|
||||
void mapHills(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
void mapRiver(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
void mapSmooth(Layer *l, int * __restrict out, int x, int z, int w, int h);
|
||||
|
Loading…
x
Reference in New Issue
Block a user