Add comments noting some not-thread-safe functions.

This commit is contained in:
Tom Schumm 2018-07-02 14:30:12 -07:00
parent 9ac742d56b
commit 6558f5b7a6
4 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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