Classes | Functions

ap_UnixApp.h File Reference

#include "ut_types.h"
#include "ut_bytebuf.h"
#include "ap_App.h"
#include "ap_UnixPrefs.h"
#include "ap_UnixClipboard.h"
#include "pt_Types.h"

Go to the source code of this file.

Classes

class  AP_UnixApp

Functions

void signalWrapper (int)

Function Documentation

void signalWrapper ( int  sig_num  ) 

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)

References AP_UnixApp::catchSignals(), AP_CocoaApp::catchSignals(), and XAP_App::getApp().

Referenced by AP_UnixApp::catchSignals(), and AP_CocoaApp::catchSignals().