Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9898552
reactor.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
reactor.h
View Options
#ifndef REACTOR_H
#define REACTOR_H
#include
"types.h"
typedef
enum
{
WORK_MICROTASKS
=
1
<<
0
,
WORK_TIMERS
=
1
<<
1
,
WORK_IMMEDIATES
=
1
<<
2
,
WORK_COROUTINES
=
1
<<
3
,
WORK_COROUTINES_READY
=
1
<<
4
,
WORK_FETCHES
=
1
<<
5
,
WORK_FS_OPS
=
1
<<
6
,
WORK_CHILD_PROCS
=
1
<<
7
,
WORK_READLINE
=
1
<<
8
,
WORK_STDIN
=
1
<<
9
,
}
work_flags_t
;
#define WORK_TASKS (WORK_MICROTASKS | WORK_TIMERS | WORK_IMMEDIATES | WORK_COROUTINES | WORK_FETCHES)
#define WORK_PENDING (WORK_TASKS | WORK_FS_OPS | WORK_CHILD_PROCS | WORK_READLINE | WORK_STDIN)
#define WORK_BLOCKING (WORK_MICROTASKS | WORK_IMMEDIATES | WORK_COROUTINES_READY)
#define WORK_ASYNC (WORK_READLINE | WORK_STDIN | WORK_TIMERS | WORK_FETCHES | WORK_FS_OPS | WORK_CHILD_PROCS)
void
js_poll_events
(
ant_t
*
js
)
;
void
js_run_event_loop
(
ant_t
*
js
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Aug 1, 1:55 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
589868
Default Alt Text
reactor.h (902 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment