Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 8

PtSignalProcF_t, PtSignalProc_t

Type for defining a signal-handling function

Synopsis:

typedef int PtSignalProcF_t( int, void *);
typedef PtSignalProcF_t *PtSignalProc_t;

Description:

These data types define pointers to signal-handling functions. The PtSignalProcF_t type is the function type that the PtSignalProc_t type points to. This allows you to do something like this:

PtSignalProcF_t my_signal_proc;

int my_signal_proc( int, void * ) {
    ...
    }

The compiler should detect any inconsistencies between the two declarations of my_signal_proc() and give you an error (which is better than a “pointer mismatch” warning on the call to PtAppAddSignalProc()).

Classification:

Photon

See also:

PtAppAddSignalProc(), PtAppRemoveSignal()

Interprocess Communication in the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 85

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptsignalproc_t.html on line 85