Vuo 2.4.2
Loading...
Searching...
No Matches
Classes | Functions | Variables
VuoRunner.cc File Reference

Description

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. More...
 
static bool isMainThread (void)
 Is the current thread the main thread? More...
 
static void VuoRunner_configureSocket (void *zmqSocket)
 Applies standard settings to the specified ZMQ socket. More...
 
int64_t VuoRunner_getDylibVMSize (const struct mach_header_64 *header)
 Returns the number of bytes the specified Mach-O binary occupies in virtual memory. More...
 
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. More...
 
void VuoRunner_dylibLoaded (const struct mach_header *mh, intptr_t vmaddr_slide)
 Logs info about a dylib that was loaded. More...
 
void VuoRunner_dylibUnloaded (const struct mach_header *mh, intptr_t vmaddr_slide)
 Logs info about a dylib that was unloaded. More...
 
void * VuoRunner_listen (void *context)
 pthread_create can't directly invoke a C++ instance method, so this is a C wrapper for it. More...
 

Variables

void * VuoApp_mainThread = NULL
 A reference to the main thread. More...
 
static const char * mainThreadChecker = "/Applications/Xcode.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib"
 The path to Xcode's libMainThreadChecker.dylib. More...
 
static int compositionReadRunnerWritePipe [2]
 A pipe used by the runtime to check if the runner process has ended. More...
 
static bool VuoRunner_isHostVDMX = false
 True if this VuoRunner instance is running inside VDMX. More...
 
static bool VuoRunner_ignoreInitialDylibs
 Don't log info about dylibs that were loaded before the first Vuo composition. More...
 

Macro Definition Documentation

◆ VuoRunnerTraceScope

#define VuoRunnerTraceScope ( )

Logs calls to VuoRunner's public methods.

Definition at line 39 of file VuoRunner.cc.

Function Documentation

◆ isMainThread()

static bool isMainThread ( void  )
static

Is the current thread the main thread?

Definition at line 95 of file VuoRunner.cc.

◆ VuoRunner_closeOnExec()

static void VuoRunner_closeOnExec ( int  fd)
static

Tells the specified Unix file descriptor to automatically close itself when exec() is called.

Definition at line 52 of file VuoRunner.cc.

◆ VuoRunner_configureSocket()

static void VuoRunner_configureSocket ( void *  zmqSocket)
static

Applies standard settings to the specified ZMQ socket.

Definition at line 103 of file VuoRunner.cc.

◆ VuoRunner_dylibLoaded()

void VuoRunner_dylibLoaded ( const struct mach_header *  mh,
intptr_t  vmaddr_slide 
)

Logs info about a dylib that was loaded.

Definition at line 544 of file VuoRunner.cc.

◆ VuoRunner_dylibUnloaded()

void VuoRunner_dylibUnloaded ( const struct mach_header *  mh,
intptr_t  vmaddr_slide 
)

Logs info about a dylib that was unloaded.

Definition at line 552 of file VuoRunner.cc.

◆ VuoRunner_getDylibVMSize()

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 472 of file VuoRunner.cc.

◆ VuoRunner_listen()

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 870 of file VuoRunner.cc.

◆ VuoRunner_logDylibInfo()

static void VuoRunner_logDylibInfo ( const struct mach_header_64 *  mh,
intptr_t  vmaddr_slide,
const char *  func 
)
static

Logs info about a dylib that was loaded or unloaded.

Definition at line 516 of file VuoRunner.cc.

Variable Documentation

◆ compositionReadRunnerWritePipe

int compositionReadRunnerWritePipe[2]
static

A pipe used by the runtime to check if the runner process has ended.

Definition at line 45 of file VuoRunner.cc.

◆ mainThreadChecker

const char* mainThreadChecker = "/Applications/Xcode.app/Contents/Developer/usr/lib/libMainThreadChecker.dylib"
static

The path to Xcode's libMainThreadChecker.dylib.

Definition at line 44 of file VuoRunner.cc.

◆ VuoApp_mainThread

void* VuoApp_mainThread = NULL

A reference to the main thread.

Definition at line 43 of file VuoRunner.cc.

◆ VuoRunner_ignoreInitialDylibs

bool VuoRunner_ignoreInitialDylibs
static

Don't log info about dylibs that were loaded before the first Vuo composition.

Definition at line 511 of file VuoRunner.cc.

◆ VuoRunner_isHostVDMX

bool VuoRunner_isHostVDMX = false
static

True if this VuoRunner instance is running inside VDMX.

Definition at line 46 of file VuoRunner.cc.