Type for defining a work procedure function
typedef int PtWorkProcF_t( void *); typedef PtWorkProcF_t *PtWorkProc_t;
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()).
Photon
Parallel Operations in the Photon Programmer's Guide