[Previous] [Contents] [Index] [Next]

PtWorkProcF_t, PtWorkProc_t

Pointer to 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()


[Previous] [Contents] [Index] [Next]