GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cu_temp_buffer_malloc.h
Go to the documentation of this file.
1 #pragma once
2 #include "ghost/error.h"
3 
4 
14 ghost_error ghost_cu_temp_buffer_malloc(void **mem, size_t bytesize);
15 
ghost_error ghost_cu_temp_buffer_free(void *mem)
Frees memory allocated with ghost_cu_temp_buffer_malloc. Threadsafe.
Definition: cu_temp_buffer_malloc.cpp:65
ghost_error ghost_cu_temp_buffer_malloc(void **mem, size_t bytesize)
Useful for allocating small temporary buffers. Keeps a list of previously allocated and freed buffers...
Definition: cu_temp_buffer_malloc.cpp:27
Types, functions and macros for error handling.
ghost_error
Error return type.
Definition: error.h:23