… | … | ||
---|---|---|---|
112 | #else | 112 | #else |
113 | # define LOCK (void)0 | 113 | # define LOCK (void)0 |
114 | # define UNLOCK (void)0 | 114 | # define UNLOCK (void)0 |
115 | #endif | 115 | #endif |
116 | 116 | ||
117 | /* helper storage struct for Coro::AIO */ | ||
117 | struct io_state | 118 | struct io_state |
118 | { | 119 | { |
119 | int errorno; | 120 | int errorno; |
120 | I32 laststype; | 121 | I32 laststype; |
121 | int laststatval; | 122 | int laststatval; |
… | … | ||
1204 | break; | 1205 | break; |
1205 | } | 1206 | } |
1206 | 1207 | ||
1207 | BARRIER; | 1208 | BARRIER; |
1208 | TRANSFER (ta); | 1209 | TRANSFER (ta); |
1210 | |||
1211 | if (GIMME_V != G_VOID && ta.next != ta.prev) | ||
1212 | XSRETURN_YES; | ||
1209 | } | 1213 | } |
1210 | 1214 | ||
1211 | bool | 1215 | bool |
1212 | _destroy (SV *coro_sv) | 1216 | _destroy (SV *coro_sv) |
1213 | CODE: | 1217 | CODE: |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |