Blender  V3.3
GHOST_Util.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include <functional>
10 
16  using FreeFn = std::function<void(void *)>;
17 
18  void *custom_data_;
20 
21  GHOST_C_CustomDataWrapper(void *custom_data, FreeFn free_fn)
22  : custom_data_(custom_data), free_fn_(free_fn)
23  {
24  }
26  {
27  if (free_fn_ != nullptr && custom_data_ != nullptr) {
29  }
30  }
31 };
SyclQueue void void size_t num_bytes void
std::function< void(void *)> FreeFn
Definition: GHOST_Util.h:16
GHOST_C_CustomDataWrapper(void *custom_data, FreeFn free_fn)
Definition: GHOST_Util.h:21