Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PtWorkProcF_t, PtWorkProc_t

PtWorkProcF_t, PtWorkProc_t

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

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