EmailScheduler/MailCore.framework/Versions/A/Headers/MCMainThread.h
2014-09-13 17:13:32 -05:00

21 lines
489 B
C++

#ifndef MAILCORE_MCMAINTHREAD_H
#define MAILCORE_MCMAINTHREAD_H
#ifdef __cplusplus
namespace mailcore {
void callOnMainThread(void (*)(void *), void * context);
void callOnMainThreadAndWait(void (*)(void *), void * context);
// Returns a "call" object.
void * callAfterDelay(void (*)(void *), void * context, double time);
// Pass the pointer returns by callAfterDelay() to cancel a delayed call.
void cancelDelayedCall(void * call);
}
#endif
#endif