blob: df246665aa35c6833aa834eb2c162cbda60bf6c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#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
|