-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdptask.h
47 lines (38 loc) · 1.04 KB
/
cdptask.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// cdptask.h
#ifndef __cdpTASK_H__
#define __cdpTASK_H__
#if C74_PRAGMA_STRUCT_PACKPUSH
#pragma pack(push, 2)
#elif C74_PRAGMA_STRUCT_PACK
#pragma pack(2)
#endif
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
typedef struct _cdptask
{
long flags; // rfu
long state;
long id;
t_object *owner;
void *args;
method cbtask;
method cbcomplete;
} t_cdptask;
void cdptask_init(void);
long cdptask_execute(t_object *owner, void *args, method cbtask, method cbcomplete, t_cdptask **task, long flags);
long cdptask_execute_method(t_object *obtask, t_symbol *mtask, long actask, t_atom *avtask,
t_object *obcomp, t_symbol *mcomp, long accomp, t_atom *avcomp, t_cdptask **task, long flags);
void cdptask_purge_object(t_object *owner);
void cdptask_join_object(t_object *owner);
long cdptask_cancel(t_cdptask *task);
long cdptask_join(t_cdptask *task);
#ifdef __cplusplus
}
#endif // __cplusplus
#if C74_PRAGMA_STRUCT_PACKPUSH
#pragma pack(pop)
#elif C74_PRAGMA_STRUCT_PACK
#pragma pack()
#endif
#endif // __cdpTASK_H__