Skip to content

Commit 9da6cf8

Browse files
Tomonobu SaitoTomonobu Saito
authored andcommitted
add: comment for RasterCache class
1 parent ee177ef commit 9da6cf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/extractor/raster_source.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ class RasterContainer
145145
};
146146

147147
// << singletone >> RasterCache
148+
// The instance of RasterContainer is created for every threads osrm-extract uses.
149+
// To avoid multiple load of same file on each RasterContainer,
150+
// The LoadedSources and LoadedSourcePaths are separated to RasterCache class
151+
// and handled as the singletone pattern to avoid duplicate creation.
148152
class RasterCache
149153
{
150154
public:

0 commit comments

Comments
 (0)