12 #ifndef __UT_SharedMemoryManager__
13 #define __UT_SharedMemoryManager__
32 bool add(
const char *key,
const char *
id, int64_t
size);
46 void setUnused(
const char *
pattern);
50 void erase(
const char *pattern,
bool only_unused =
false);
54 static void exitCallback(
void *);
68 struct ut_AutoSharedMemory
70 ut_AutoSharedMemory() : mySharedMemory(0), myUsed(
false) {}
71 ~ut_AutoSharedMemory();
73 ut_AutoSharedMemory(
const ut_AutoSharedMemory &) =
delete;
74 ut_AutoSharedMemory &
operator=(
const ut_AutoSharedMemory &) =
delete;
85 #endif // __UT_SharedMemoryManager__
FMT_CONSTEXPR auto find(Ptr first, Ptr last, T value, Ptr &out) -> bool
LeafData & operator=(const LeafData &)=delete
ImageBuf OIIO_API add(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
bool OIIO_UTIL_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?