hallib/threads: extend thread API - more flexible parameter passing
hallib/threads: extend thread API - more flexible parameter passing

Nothing changes for the legacy API.

extended functs exported with type FS_XTHREADFUNC are compatible with RT threads
and normal addf/delf. They are called with a more flexible call signature,
supporting time measurement and more basically for free.

Example:

// an extended RT thread function, more useful arguments passed in:
// extended thread functions can be addf'd like legacy functions, the right thing will happen
// time observation for free!
static int xthread_funct(const void *arg, const hal_funct_args_t *fa)
{
    // the following accessors are available here:

    // fa_period(fa) - formerly 'long period'
    // fa_thread_start_time(fa): _actual_ start time of thread invocation
    // fa_start_time(fa):        _actual_ start time of function invocation
    // fa_thread_name(fa): name of the calling thread (char *)
    // fa_funct_name(fa):  name of the this called function (char *)

    return 0;
}

ArcEye/MK-Qt5,RunningLight/machinekit,RunningLight/machinekit,kinsamanka/machinekit,mhaberler/machinekit,unseenlaser/machinekit,RunningLight/machinekit,ArcEye/MK-Qt5,ArcEye/machinekit-testing,bobvanderlinden/machinekit,ArcEye/machinekit-testing,unseenlaser/machinekit,mhaberler/machinekit,bobvanderlinden/machinekit,unseenlaser/machinekit,RunningLight/machinekit,kinsamanka/machinekit,araisrobo/machinekit,ArcEye/MK-Qt5,kinsamanka/machinekit,mhaberler/machinekit,kinsamanka/machinekit,Cid427/machinekit,strahlex/machinekit,RunningLight/machinekit,unseenlaser/machinekit,Cid427/machinekit,strahlex/machinekit,strahlex/machinekit,kinsamanka/machinekit,bobvanderlinden/machinekit,ArcEye/MK-Qt5,araisrobo/machinekit,Cid427/machinekit,araisrobo/machinekit,Cid427/machinekit,araisrobo/machinekit,bobvanderlinden/machinekit,ArcEye/machinekit-testing,kinsamanka/machinekit,RunningLight/machinekit,mhaberler/machinekit,Cid427/machinekit,mhaberler/machinekit,mhaberler/machinekit,ArcEye/MK-Qt5,bobvanderlinden/machinekit,ArcEye/machinekit-testing,unseenlaser/machinekit,araisrobo/machinekit,RunningLight/machinekit,ArcEye/machinekit-testing,strahlex/machinekit,araisrobo/machinekit,unseenlaser/machinekit,strahlex/machinekit,Cid427/machinekit,araisrobo/machinekit,bobvanderlinden/machinekit,Cid427/machinekit,araisrobo/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,araisrobo/machinekit,strahlex/machinekit,kinsamanka/machinekit,kinsamanka/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,bobvanderlinden/machinekit,ArcEye/MK-Qt5,ArcEye/machinekit-testing,Cid427/machinekit,strahlex/machinekit,ArcEye/machinekit-testing,RunningLight/machinekit,ArcEye/machinekit-testing,mhaberler/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5