Blender V5.3
task_iterator.cc File Reference
#include <cstdlib>
#include "MEM_guardedalloc.h"
#include "BLI_mempool.hh"
#include "BLI_mempool_private.h"
#include "BLI_task_c.hh"

Go to the source code of this file.

Classes

struct  blender::ParallelMempoolState

Namespaces

namespace  blender
 BMesh Iterators.

Macros

Macros
#define MALLOCA(_size)
#define MALLOCA_FREE(_mem, _size)

Functions

MemPool Iteration
static void blender::parallel_mempool_func (TaskPool *__restrict pool, void *taskdata)
Parallel for Routines
void blender::BLI_task_parallel_mempool (struct BLI_mempool *mempool, void *userdata, TaskParallelMempoolFunc func, const TaskParallelSettings *settings)

Detailed Description

Parallel tasks over all elements in a container.

Definition in file task_iterator.cc.

Macro Definition Documentation

◆ MALLOCA

#define MALLOCA ( _size)
Value:
((_size) <= 8192) ? alloca(_size) : MEM_new_uninitialized((_size), __func__)
void * MEM_new_uninitialized(size_t len, const char *str)
Definition mallocn.cc:124

Definition at line 26 of file task_iterator.cc.

Referenced by blender::BLI_task_parallel_mempool().

◆ MALLOCA_FREE

#define MALLOCA_FREE ( _mem,
_size )
Value:
if (((_mem) != nullptr) && ((_size) > 8192)) { \
MEM_delete_void(_mem); \
} \
((void)0)

Definition at line 27 of file task_iterator.cc.

Referenced by blender::BLI_task_parallel_mempool().