18#if defined(_WIN32) || defined(__linux__)
19# define BLI_SUBPROCESS_SUPPORT 1
21# define BLI_SUBPROCESS_SUPPORT 0
24#if BLI_SUBPROCESS_SUPPORT
46class BlenderSubprocess : NonCopyable {
49 HANDLE handle_ =
nullptr;
63 bool create(Span<StringRefNull> args);
78class SharedMemory : NonCopyable {
100 SharedMemory(std::string name,
size_t size,
bool is_owner);
121class SharedSemaphore : NonCopyable {
141 SharedSemaphore(std::string name,
bool is_owner);
152 bool try_decrement(
int wait_ms = 0);