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/ptworkproc_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/ptworkproc_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/ptworkproc_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/ptworkproc_t.html on line 8

PtWorkProcF_t, PtWorkProc_t

Type for defining a work procedure function

Synopsis:

typedef int PtWorkProcF_t( void *);
typedef PtWorkProcF_t *PtWorkProc_t;

Description:

These data types define pointers to work procedures. The PtWorkProcF_t type is the function type that the PtWorkProc_t type points to. This allows you to do something like this:

PtWorkProcF_t my_work_proc;

int my_work_proc( void *data ) {
    ...
    }

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

Classification:

Photon

See also:

PtAppAddWorkProc()

Parallel Operations 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/ptworkproc_t.html on line 84

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/ptworkproc_t.html on line 84