VuoRunner implementation.
Definition in file VuoRunner.cc.
Go to the source code of this file.
Classes | |
class | VuoRunner::Private |
Private instance data for VuoRunner. More... | |
Macros | |
#define | VuoRunnerTraceScope() |
Functions | |
static void | VuoRunner_closeOnExec (int fd) |
Tells the specified Unix file descriptor to automatically close itself when exec() is called. | |
static bool | isMainThread (void) |
Is the current thread the main thread? | |
static void | VuoRunner_configureSocket (void *zmqSocket) |
Applies standard settings to the specified ZMQ socket. | |
VuoRunner * | VuoRunner_newSeparateProcessRunnerFromExecutable (const char *executablePath, const char *sourceDir, bool continueIfRunnerDies, bool deleteExecutableWhenFinished) |
C adaptor for VuoRunner::newSeparateProcessRunnerFromExecutable() so it can be looked up with dlsym . | |
VuoRunner * | VuoRunner_newCurrentProcessRunnerFromDynamicLibrary (const char *dylibPath, const char *sourceDir, bool deleteDylibWhenFinished) |
C adaptor for VuoRunner::newCurrentProcessRunnerFromDynamicLibrary() so it can be looked up with dlsym . | |
int64_t | VuoRunner_getDylibVMSize (const struct mach_header_64 *header) |
Returns the number of bytes the specified Mach-O binary occupies in virtual memory. | |
static void | VuoRunner_logDylibInfo (const struct mach_header_64 *mh, intptr_t vmaddr_slide, const char *func) |
Logs info about a dylib that was loaded or unloaded. | |
void | VuoRunner_dylibLoaded (const struct mach_header *mh, intptr_t vmaddr_slide) |
Logs info about a dylib that was loaded. | |
void | VuoRunner_dylibUnloaded (const struct mach_header *mh, intptr_t vmaddr_slide) |
Logs info about a dylib that was unloaded. | |
void * | VuoRunner_listen (void *context) |
pthread_create can't directly invoke a C++ instance method, so this is a C wrapper for it. | |
Variables | |
void * | VuoApp_mainThread = NULL |
A reference to the main thread. | |
static const char * | mainThreadChecker = "/Applications/Xcode.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib" |
The path to Xcode's libMainThreadChecker.dylib. | |
static int | compositionReadRunnerWritePipe [2] |
A pipe used by the runtime to check if the runner process has ended. | |
static bool | VuoRunner_isHostVDMX = false |
True if this VuoRunner instance is running inside VDMX. | |
static bool | VuoRunner_ignoreInitialDylibs |
Don't log info about dylibs that were loaded before the first Vuo composition. | |
#define VuoRunnerTraceScope | ( | ) |
Logs calls to VuoRunner's public methods.
Definition at line 39 of file VuoRunner.cc.
|
static |
Is the current thread the main thread?
Definition at line 95 of file VuoRunner.cc.
|
static |
Tells the specified Unix file descriptor to automatically close itself when exec()
is called.
Definition at line 52 of file VuoRunner.cc.
|
static |
Applies standard settings to the specified ZMQ socket.
Definition at line 103 of file VuoRunner.cc.
void VuoRunner_dylibLoaded | ( | const struct mach_header * | mh, |
intptr_t | vmaddr_slide | ||
) |
Logs info about a dylib that was loaded.
Definition at line 562 of file VuoRunner.cc.
void VuoRunner_dylibUnloaded | ( | const struct mach_header * | mh, |
intptr_t | vmaddr_slide | ||
) |
Logs info about a dylib that was unloaded.
Definition at line 570 of file VuoRunner.cc.
int64_t VuoRunner_getDylibVMSize | ( | const struct mach_header_64 * | header | ) |
Returns the number of bytes the specified Mach-O binary occupies in virtual memory.
Definition at line 490 of file VuoRunner.cc.
void * VuoRunner_listen | ( | void * | context | ) |
pthread_create
can't directly invoke a C++ instance method, so this is a C wrapper for it.
Definition at line 888 of file VuoRunner.cc.
|
static |
Logs info about a dylib that was loaded or unloaded.
Definition at line 534 of file VuoRunner.cc.
VuoRunner * VuoRunner_newCurrentProcessRunnerFromDynamicLibrary | ( | const char * | dylibPath, |
const char * | sourceDir, | ||
bool | deleteDylibWhenFinished | ||
) |
C adaptor for VuoRunner::newCurrentProcessRunnerFromDynamicLibrary() so it can be looked up with dlsym
.
Definition at line 219 of file VuoRunner.cc.
VuoRunner * VuoRunner_newSeparateProcessRunnerFromExecutable | ( | const char * | executablePath, |
const char * | sourceDir, | ||
bool | continueIfRunnerDies, | ||
bool | deleteExecutableWhenFinished | ||
) |
C adaptor for VuoRunner::newSeparateProcessRunnerFromExecutable() so it can be looked up with dlsym
.
Definition at line 157 of file VuoRunner.cc.
|
static |
A pipe used by the runtime to check if the runner process has ended.
Definition at line 45 of file VuoRunner.cc.
|
static |
The path to Xcode's libMainThreadChecker.dylib.
Definition at line 44 of file VuoRunner.cc.
void* VuoApp_mainThread = NULL |
A reference to the main thread.
Definition at line 43 of file VuoRunner.cc.
|
static |
Don't log info about dylibs that were loaded before the first Vuo composition.
Definition at line 529 of file VuoRunner.cc.
|
static |
True if this VuoRunner instance is running inside VDMX.
Definition at line 46 of file VuoRunner.cc.