… | |
… | |
221 | |
221 | |
222 | /* process data */ |
222 | /* process data */ |
223 | AV *mainstack; |
223 | AV *mainstack; |
224 | perl_slots *slot; /* basically the saved sp */ |
224 | perl_slots *slot; /* basically the saved sp */ |
225 | |
225 | |
226 | /* data associated with this coroutine (initial args) */ |
226 | AV *args; /* data associated with this coroutine (initial args) */ |
227 | AV *args; |
227 | int refcnt; /* coroutines are refcounted, yes */ |
228 | int refcnt; |
|
|
229 | int flags; /* CF_ flags */ |
228 | int flags; /* CF_ flags */ |
|
|
229 | HV *hv; /* the perl hash associated with this coro, if any */ |
230 | |
230 | |
231 | /* statistics */ |
231 | /* statistics */ |
232 | int usecount; /* number of transfers to this coro */ |
232 | int usecount; /* number of transfers to this coro */ |
233 | |
233 | |
234 | /* coro process data */ |
234 | /* coro process data */ |
235 | int prio; |
235 | int prio; |
236 | SV *throw; |
236 | SV *throw; /* exception to be thrown */ |
237 | |
237 | |
238 | /* async_pool */ |
238 | /* async_pool */ |
239 | SV *saved_deffh; |
239 | SV *saved_deffh; |
240 | |
240 | |
241 | /* linked list */ |
241 | /* linked list */ |
242 | struct coro *next, *prev; |
242 | struct coro *next, *prev; |
243 | HV *hv; /* the perl hash associated with this coro, if any */ |
|
|
244 | }; |
243 | }; |
245 | |
244 | |
246 | typedef struct coro *Coro__State; |
245 | typedef struct coro *Coro__State; |
247 | typedef struct coro *Coro__State_or_hashref; |
246 | typedef struct coro *Coro__State_or_hashref; |
248 | |
247 | |