Pyrogenesis
13997
|
#include "precompiled.h"
#include "lib/file/vfs/vfs.h"
#include "lib/allocators/shared_ptr.h"
#include "lib/posix/posix_pthread.h"
#include "lib/file/file_system.h"
#include "lib/file/common/file_stats.h"
#include "lib/file/common/trace.h"
#include "lib/file/archive/archive.h"
#include "lib/file/io/io.h"
#include "lib/file/vfs/vfs_tree.h"
#include "lib/file/vfs/vfs_lookup.h"
#include "lib/file/vfs/vfs_populate.h"
#include "lib/file/vfs/file_cache.h"
Go to the source code of this file.
Classes | |
struct | ScopedLock |
class | VFS |
Functions | |
STATUS_ADD_DEFINITIONS (vfsStatusDefinitions) | |
PIVFS | CreateVfs (size_t cacheSize) |
create an instance of a Virtual File System. More... | |
Variables | |
static const StatusDefinition | vfsStatusDefinitions [] |
static pthread_mutex_t | vfs_mutex = PTHREAD_MUTEX_INITIALIZER |
PIVFS CreateVfs | ( | size_t | cacheSize | ) |
create an instance of a Virtual File System.
cacheSize | size [bytes] of memory to reserve for a file cache, or zero to disable it. if small enough to fit, file contents are stored here until no references remain and they are evicted. |
note: there is no limitation to a single instance, it may make sense to create and destroy VFS instances during each unit test.
STATUS_ADD_DEFINITIONS | ( | vfsStatusDefinitions | ) |
|
static |
|
static |