ZFFramework
Loading...
Searching...
No Matches
ZFThread_zfpost.h File Reference

thread utility More...

#include "ZFThread.h"

Go to the source code of this file.

Functions

zfautoT< ZFTaskIdzfpost (const ZFListener &callback, ZFThread *target=(zft_zfnull))
 util to run code in specified thread or ZFThread::mainThread if not specified or not ZFThread::taskQueueAvailable
zfautoT< ZFTaskIdzfpostDelayed (zftimet delay, const ZFListener &callback, ZFThread *target=(zft_zfnull))
 util to run code in specified thread (or ZFThread::mainThread if not specified) after delay

Detailed Description

thread utility

Function Documentation

◆ zfpostDelayed()

zfautoT< ZFTaskId > zfpostDelayed ( zftimet delay,
const ZFListener & callback,
ZFThread * target = (zft_zfnull) )
extern

util to run code in specified thread (or ZFThread::mainThread if not specified) after delay

assert fail if any of these not available: