forked from teamnwah/openmw-tes3coop
Mark thread safe methods in BsaFile
This commit is contained in:
parent
fc0be77e4c
commit
b2019d31c7
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,7 @@ private:
|
||||||
void readHeader();
|
void readHeader();
|
||||||
|
|
||||||
/// Get the index of a given file name, or -1 if not found
|
/// Get the index of a given file name, or -1 if not found
|
||||||
|
/// @note Thread safe.
|
||||||
int getIndex(const char *str) const;
|
int getIndex(const char *str) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -116,12 +117,17 @@ public:
|
||||||
|
|
||||||
/** Open a file contained in the archive. Throws an exception if the
|
/** Open a file contained in the archive. Throws an exception if the
|
||||||
file doesn't exist.
|
file doesn't exist.
|
||||||
|
* @note Thread safe.
|
||||||
*/
|
*/
|
||||||
Files::IStreamPtr getFile(const char *file);
|
Files::IStreamPtr getFile(const char *file);
|
||||||
|
|
||||||
|
/** Open a file contained in the archive.
|
||||||
|
* @note Thread safe.
|
||||||
|
*/
|
||||||
Files::IStreamPtr getFile(const FileStruct* file);
|
Files::IStreamPtr getFile(const FileStruct* file);
|
||||||
|
|
||||||
/// Get a list of all files
|
/// Get a list of all files
|
||||||
|
/// @note Thread safe.
|
||||||
const FileList &getList() const
|
const FileList &getList() const
|
||||||
{ return files; }
|
{ return files; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue