Blender V5.3
BLI_mmap.cc File Reference
#include "BLI_mmap.hh"
#include "BLI_assert.hh"
#include "BLI_fileops.hh"
#include "BLI_mutex.hh"
#include "BLI_string_utils.hh"
#include "BLI_vector.hh"
#include "MEM_guardedalloc.h"
#include <atomic>
#include <cstring>
#include <csignal>
#include <cstdlib>
#include <sys/mman.h>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  blender::BLI_mmap_file

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static Vector< BLI_mmap_file * > & blender::open_mmaps_vector ()
static void blender::print_error (const char *message)
static bool blender::try_map_zeros (BLI_mmap_file *file)
static bool blender::try_handle_error_for_address (const void *address)
static void blender::sigbus_handler (int sig, siginfo_t *siginfo, void *ptr) noexcept
static bool blender::ensure_mmap_initialized ()
static void blender::error_handler_add (BLI_mmap_file *file)
static void blender::error_handler_remove (BLI_mmap_file *file)
BLI_mmap_file * blender::BLI_mmap_open (int fd) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
bool blender::BLI_mmap_read (BLI_mmap_file *file, void *dest, size_t offset, size_t length) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * blender::BLI_mmap_get_pointer (BLI_mmap_file *file) ATTR_WARN_UNUSED_RESULT
size_t blender::BLI_mmap_get_length (const BLI_mmap_file *file) ATTR_WARN_UNUSED_RESULT
bool blender::BLI_mmap_any_io_error (const BLI_mmap_file *file) ATTR_WARN_UNUSED_RESULT
void blender::BLI_mmap_free (BLI_mmap_file *file) ATTR_NONNULL(1)

Variables

static Mutex blender::mmap_mutex
static struct sigaction blender::next_handler = {}