|
|
1 | #if __linux |
|
|
2 | # define _GNU_SOURCE |
|
|
3 | #endif |
|
|
4 | |
1 | #define _REENTRANT 1 |
5 | #define _REENTRANT 1 |
|
|
6 | |
2 | #include <errno.h> |
7 | #include <errno.h> |
3 | |
8 | |
4 | #include "EXTERN.h" |
9 | #include "EXTERN.h" |
5 | #include "perl.h" |
10 | #include "perl.h" |
6 | #include "XSUB.h" |
11 | #include "XSUB.h" |
… | |
… | |
55 | REQ_STAT, REQ_LSTAT, REQ_FSTAT, |
60 | REQ_STAT, REQ_LSTAT, REQ_FSTAT, |
56 | REQ_FSYNC, REQ_FDATASYNC, |
61 | REQ_FSYNC, REQ_FDATASYNC, |
57 | REQ_UNLINK, REQ_RMDIR, REQ_RENAME, |
62 | REQ_UNLINK, REQ_RMDIR, REQ_RENAME, |
58 | REQ_READDIR, |
63 | REQ_READDIR, |
59 | REQ_LINK, REQ_SYMLINK, |
64 | REQ_LINK, REQ_SYMLINK, |
|
|
65 | REQ_GROUP, REQ_NOP, |
60 | REQ_SLEEP, |
66 | REQ_SLEEP, |
61 | REQ_GROUP, |
|
|
62 | }; |
67 | }; |
63 | |
68 | |
64 | #define AIO_REQ_KLASS "IO::AIO::REQ" |
69 | #define AIO_REQ_KLASS "IO::AIO::REQ" |
65 | #define AIO_GRP_KLASS "IO::AIO::GRP" |
70 | #define AIO_GRP_KLASS "IO::AIO::GRP" |
66 | |
71 | |
67 | typedef struct aio_cb |
72 | typedef struct aio_cb |
68 | { |
73 | { |
69 | struct aio_cb *volatile next; |
74 | struct aio_cb *volatile next; |
70 | |
|
|
71 | struct aio_cb *grp, *grp_prev, *grp_next, *grp_first; |
|
|
72 | |
|
|
73 | SV *self; /* the perl counterpart of this request, if any */ |
|
|
74 | |
75 | |
75 | SV *data, *callback; |
76 | SV *data, *callback; |
76 | SV *fh, *fh2; |
77 | SV *fh, *fh2; |
77 | void *dataptr, *data2ptr; |
78 | void *dataptr, *data2ptr; |
78 | Stat_t *statdata; |
79 | Stat_t *statdata; |
79 | off_t offset; |
80 | off_t offset; |
80 | size_t length; |
81 | size_t length; |
81 | ssize_t result; |
82 | ssize_t result; |
82 | |
83 | |
|
|
84 | STRLEN dataoffset; |
83 | int type; |
85 | int type; |
84 | int fd, fd2; |
86 | int fd, fd2; |
85 | int errorno; |
87 | int errorno; |
86 | STRLEN dataoffset; |
|
|
87 | mode_t mode; /* open */ |
88 | mode_t mode; /* open */ |
|
|
89 | |
88 | unsigned char cancelled; |
90 | unsigned char flags; |
|
|
91 | unsigned char pri; |
|
|
92 | |
|
|
93 | SV *self; /* the perl counterpart of this request, if any */ |
|
|
94 | struct aio_cb *grp, *grp_prev, *grp_next, *grp_first; |
89 | } aio_cb; |
95 | } aio_cb; |
|
|
96 | |
|
|
97 | enum { |
|
|
98 | FLAG_CANCELLED = 0x01, |
|
|
99 | }; |
90 | |
100 | |
91 | typedef aio_cb *aio_req; |
101 | typedef aio_cb *aio_req; |
92 | typedef aio_cb *aio_req_ornot; |
102 | typedef aio_cb *aio_req_ornot; |
|
|
103 | |
|
|
104 | enum { |
|
|
105 | PRI_MIN = -4, |
|
|
106 | PRI_MAX = 4, |
|
|
107 | |
|
|
108 | DEFAULT_PRI = 0, |
|
|
109 | PRI_BIAS = -PRI_MIN, |
|
|
110 | }; |
|
|
111 | |
|
|
112 | static int next_pri = DEFAULT_PRI + PRI_BIAS; |
93 | |
113 | |
94 | static int started, wanted; |
114 | static int started, wanted; |
95 | static volatile int nreqs; |
115 | static volatile int nreqs; |
96 | static int max_outstanding = 1<<30; |
116 | static int max_outstanding = 1<<30; |
97 | static int respipe [2]; |
117 | static int respipe [2]; |
98 | |
118 | |
|
|
119 | #if __linux && defined (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) |
|
|
120 | # define AIO_MUTEX_INIT PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP |
|
|
121 | #else |
|
|
122 | # define AIO_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER |
|
|
123 | #endif |
|
|
124 | |
99 | static pthread_mutex_t reslock = PTHREAD_MUTEX_INITIALIZER; |
125 | static pthread_mutex_t reslock = AIO_MUTEX_INIT; |
100 | static pthread_mutex_t reqlock = PTHREAD_MUTEX_INITIALIZER; |
126 | static pthread_mutex_t reqlock = AIO_MUTEX_INIT; |
101 | static pthread_cond_t reqwait = PTHREAD_COND_INITIALIZER; |
127 | static pthread_cond_t reqwait = PTHREAD_COND_INITIALIZER; |
102 | |
128 | |
103 | static volatile aio_req reqs, reqe; /* queue start, queue end */ |
129 | static volatile aio_req reqs, reqe; /* queue start, queue end */ |
104 | static volatile aio_req ress, rese; /* queue start, queue end */ |
130 | static volatile aio_req ress, rese; /* queue start, queue end */ |
105 | |
131 | |
|
|
132 | static void req_invoke (aio_req req); |
106 | static void req_free (aio_req req); |
133 | static void req_free (aio_req req); |
107 | |
134 | |
108 | /* must be called at most once */ |
135 | /* must be called at most once */ |
109 | static SV *req_sv (aio_req req, const char *klass) |
136 | static SV *req_sv (aio_req req, const char *klass) |
110 | { |
137 | { |
… | |
… | |
117 | return sv_2mortal (sv_bless (newRV_inc (req->self), gv_stashpv (klass, 1))); |
144 | return sv_2mortal (sv_bless (newRV_inc (req->self), gv_stashpv (klass, 1))); |
118 | } |
145 | } |
119 | |
146 | |
120 | static aio_req SvAIO_REQ (SV *sv) |
147 | static aio_req SvAIO_REQ (SV *sv) |
121 | { |
148 | { |
|
|
149 | MAGIC *mg; |
|
|
150 | |
122 | if (!sv_derived_from (sv, AIO_REQ_KLASS) || !SvROK (sv)) |
151 | if (!sv_derived_from (sv, AIO_REQ_KLASS) || !SvROK (sv)) |
123 | croak ("object of class " AIO_REQ_KLASS " expected"); |
152 | croak ("object of class " AIO_REQ_KLASS " expected"); |
124 | |
153 | |
125 | MAGIC *mg = mg_find (SvRV (sv), PERL_MAGIC_ext); |
154 | mg = mg_find (SvRV (sv), PERL_MAGIC_ext); |
126 | |
155 | |
127 | return mg ? (aio_req)mg->mg_ptr : 0; |
156 | return mg ? (aio_req)mg->mg_ptr : 0; |
128 | } |
157 | } |
129 | |
158 | |
130 | static void aio_grp_feed (aio_req grp) |
159 | static void aio_grp_feed (aio_req grp) |
131 | { |
160 | { |
132 | while (grp->length < grp->fd2) |
161 | while (grp->length < grp->fd2 && !(grp->flags & FLAG_CANCELLED)) |
133 | { |
162 | { |
134 | int old_len = grp->length; |
163 | int old_len = grp->length; |
135 | |
164 | |
136 | if (grp->fh2 && SvOK (grp->fh2)) |
165 | if (grp->fh2 && SvOK (grp->fh2)) |
137 | { |
166 | { |
… | |
… | |
156 | break; |
185 | break; |
157 | } |
186 | } |
158 | } |
187 | } |
159 | } |
188 | } |
160 | |
189 | |
|
|
190 | static void aio_grp_dec (aio_req grp) |
|
|
191 | { |
|
|
192 | --grp->length; |
|
|
193 | |
|
|
194 | /* call feeder, if applicable */ |
|
|
195 | aio_grp_feed (grp); |
|
|
196 | |
|
|
197 | /* finish, if done */ |
|
|
198 | if (!grp->length && grp->fd) |
|
|
199 | { |
|
|
200 | req_invoke (grp); |
|
|
201 | req_free (grp); |
|
|
202 | } |
|
|
203 | } |
|
|
204 | |
161 | static void poll_wait () |
205 | static void poll_wait () |
162 | { |
206 | { |
163 | if (nreqs && !ress) |
|
|
164 | { |
|
|
165 | fd_set rfd; |
207 | fd_set rfd; |
|
|
208 | |
|
|
209 | while (nreqs) |
|
|
210 | { |
|
|
211 | aio_req req; |
|
|
212 | #if !(__x86 || __x86_64) /* safe without sempahore on this archs */ |
|
|
213 | pthread_mutex_lock (&reslock); |
|
|
214 | #endif |
|
|
215 | req = ress; |
|
|
216 | #if !(__x86 || __x86_64) /* safe without sempahore on this archs */ |
|
|
217 | pthread_mutex_unlock (&reslock); |
|
|
218 | #endif |
|
|
219 | |
|
|
220 | if (req) |
|
|
221 | return; |
|
|
222 | |
166 | FD_ZERO(&rfd); |
223 | FD_ZERO(&rfd); |
167 | FD_SET(respipe [0], &rfd); |
224 | FD_SET(respipe [0], &rfd); |
168 | |
225 | |
169 | select (respipe [0] + 1, &rfd, 0, 0, 0); |
226 | select (respipe [0] + 1, &rfd, 0, 0, 0); |
170 | } |
227 | } |
… | |
… | |
173 | static void req_invoke (aio_req req) |
230 | static void req_invoke (aio_req req) |
174 | { |
231 | { |
175 | dSP; |
232 | dSP; |
176 | int errorno = errno; |
233 | int errorno = errno; |
177 | |
234 | |
178 | if (req->cancelled || !SvOK (req->callback)) |
235 | if (req->flags & FLAG_CANCELLED || !SvOK (req->callback)) |
179 | return; |
236 | return; |
180 | |
237 | |
181 | errno = req->errorno; |
238 | errno = req->errorno; |
182 | |
239 | |
183 | ENTER; |
240 | ENTER; |
… | |
… | |
241 | for (i = 0; i <= AvFILL (av); ++i) |
298 | for (i = 0; i <= AvFILL (av); ++i) |
242 | PUSHs (*av_fetch (av, i, 0)); |
299 | PUSHs (*av_fetch (av, i, 0)); |
243 | } |
300 | } |
244 | break; |
301 | break; |
245 | |
302 | |
|
|
303 | case REQ_NOP: |
246 | case REQ_SLEEP: |
304 | case REQ_SLEEP: |
247 | break; |
305 | break; |
248 | |
306 | |
249 | default: |
307 | default: |
250 | PUSHs (sv_2mortal (newSViv (req->result))); |
308 | PUSHs (sv_2mortal (newSViv (req->result))); |
… | |
… | |
254 | |
312 | |
255 | PUTBACK; |
313 | PUTBACK; |
256 | call_sv (req->callback, G_VOID | G_EVAL); |
314 | call_sv (req->callback, G_VOID | G_EVAL); |
257 | SPAGAIN; |
315 | SPAGAIN; |
258 | |
316 | |
|
|
317 | FREETMPS; |
|
|
318 | LEAVE; |
|
|
319 | |
|
|
320 | errno = errorno; |
|
|
321 | |
259 | if (SvTRUE (ERRSV)) |
322 | if (SvTRUE (ERRSV)) |
260 | { |
323 | { |
261 | req_free (req); |
324 | req_free (req); |
262 | croak (0); |
325 | croak (0); |
263 | } |
326 | } |
264 | |
|
|
265 | FREETMPS; |
|
|
266 | LEAVE; |
|
|
267 | |
|
|
268 | errno = errorno; |
|
|
269 | } |
327 | } |
270 | |
328 | |
271 | static void req_free (aio_req req) |
329 | static void req_free (aio_req req) |
272 | { |
330 | { |
273 | if (req->grp) |
331 | if (req->grp) |
… | |
… | |
279 | if (req->grp_prev) req->grp_prev->grp_next = req->grp_next; |
337 | if (req->grp_prev) req->grp_prev->grp_next = req->grp_next; |
280 | |
338 | |
281 | if (grp->grp_first == req) |
339 | if (grp->grp_first == req) |
282 | grp->grp_first = req->grp_next; |
340 | grp->grp_first = req->grp_next; |
283 | |
341 | |
284 | --grp->length; |
|
|
285 | |
|
|
286 | /* call feeder, if applicable */ |
|
|
287 | aio_grp_feed (grp); |
342 | aio_grp_dec (grp); |
288 | |
|
|
289 | /* finish, if done */ |
|
|
290 | if (!grp->length && grp->fd) |
|
|
291 | { |
|
|
292 | req_invoke (grp); |
|
|
293 | req_free (grp); |
|
|
294 | } |
|
|
295 | } |
343 | } |
296 | |
344 | |
297 | if (req->self) |
345 | if (req->self) |
298 | { |
346 | { |
299 | sv_unmagic (req->self, PERL_MAGIC_ext); |
347 | sv_unmagic (req->self, PERL_MAGIC_ext); |
… | |
… | |
312 | Safefree (req); |
360 | Safefree (req); |
313 | } |
361 | } |
314 | |
362 | |
315 | static void req_cancel (aio_req req) |
363 | static void req_cancel (aio_req req) |
316 | { |
364 | { |
317 | req->cancelled = 1; |
365 | req->flags |= FLAG_CANCELLED; |
318 | |
366 | |
319 | if (req->type == REQ_GROUP) |
367 | if (req->type == REQ_GROUP) |
320 | { |
368 | { |
321 | aio_req sub; |
369 | aio_req sub; |
322 | |
370 | |
… | |
… | |
355 | pthread_mutex_unlock (&reslock); |
403 | pthread_mutex_unlock (&reslock); |
356 | |
404 | |
357 | if (!req) |
405 | if (!req) |
358 | break; |
406 | break; |
359 | |
407 | |
360 | nreqs--; |
408 | --nreqs; |
361 | |
409 | |
362 | if (req->type == REQ_QUIT) |
410 | if (req->type == REQ_QUIT) |
363 | started--; |
411 | started--; |
364 | else if (req->type == REQ_GROUP && req->length) |
412 | else if (req->type == REQ_GROUP && req->length) |
365 | { |
413 | { |
… | |
… | |
416 | static void req_send (aio_req req) |
464 | static void req_send (aio_req req) |
417 | { |
465 | { |
418 | while (started < wanted && nreqs >= started) |
466 | while (started < wanted && nreqs >= started) |
419 | start_thread (); |
467 | start_thread (); |
420 | |
468 | |
421 | nreqs++; |
469 | ++nreqs; |
422 | |
470 | |
423 | pthread_mutex_lock (&reqlock); |
471 | pthread_mutex_lock (&reqlock); |
424 | |
472 | |
425 | req->next = 0; |
473 | req->next = 0; |
426 | |
474 | |
… | |
… | |
776 | } |
824 | } |
777 | |
825 | |
778 | pthread_mutex_unlock (&reqlock); |
826 | pthread_mutex_unlock (&reqlock); |
779 | |
827 | |
780 | errno = 0; /* strictly unnecessary */ |
828 | errno = 0; /* strictly unnecessary */ |
|
|
829 | type = req->type; /* remember type for QUIT check */ |
781 | |
830 | |
782 | if (!req->cancelled) |
831 | if (!(req->flags & FLAG_CANCELLED)) |
783 | switch (req->type) |
832 | switch (type) |
784 | { |
833 | { |
785 | case REQ_READ: req->result = pread (req->fd, req->dataptr, req->length, req->offset); break; |
834 | case REQ_READ: req->result = pread (req->fd, req->dataptr, req->length, req->offset); break; |
786 | case REQ_WRITE: req->result = pwrite (req->fd, req->dataptr, req->length, req->offset); break; |
835 | case REQ_WRITE: req->result = pwrite (req->fd, req->dataptr, req->length, req->offset); break; |
787 | |
836 | |
788 | case REQ_READAHEAD: req->result = readahead (req->fd, req->offset, req->length); break; |
837 | case REQ_READAHEAD: req->result = readahead (req->fd, req->offset, req->length); break; |
… | |
… | |
812 | tv.tv_usec = req->fd2; |
861 | tv.tv_usec = req->fd2; |
813 | |
862 | |
814 | req->result = select (0, 0, 0, 0, &tv); |
863 | req->result = select (0, 0, 0, 0, &tv); |
815 | } |
864 | } |
816 | |
865 | |
|
|
866 | case REQ_GROUP: |
|
|
867 | case REQ_NOP: |
817 | case REQ_QUIT: |
868 | case REQ_QUIT: |
818 | break; |
869 | break; |
819 | |
870 | |
820 | default: |
871 | default: |
821 | req->result = ENOSYS; |
872 | req->result = ENOSYS; |
… | |
… | |
905 | atfork_parent (); |
956 | atfork_parent (); |
906 | } |
957 | } |
907 | |
958 | |
908 | #define dREQ \ |
959 | #define dREQ \ |
909 | aio_req req; \ |
960 | aio_req req; \ |
|
|
961 | int req_pri = next_pri; \ |
|
|
962 | next_pri = DEFAULT_PRI + PRI_BIAS; \ |
910 | \ |
963 | \ |
911 | if (SvOK (callback) && !SvROK (callback)) \ |
964 | if (SvOK (callback) && !SvROK (callback)) \ |
912 | croak ("callback must be undef or of reference type"); \ |
965 | croak ("callback must be undef or of reference type"); \ |
913 | \ |
966 | \ |
914 | Newz (0, req, 1, aio_cb); \ |
967 | Newz (0, req, 1, aio_cb); \ |
915 | if (!req) \ |
968 | if (!req) \ |
916 | croak ("out of memory during aio_req allocation"); \ |
969 | croak ("out of memory during aio_req allocation"); \ |
917 | \ |
970 | \ |
918 | req->callback = newSVsv (callback) |
971 | req->callback = newSVsv (callback); \ |
|
|
972 | req->pri = req_pri |
919 | |
973 | |
920 | #define REQ_SEND \ |
974 | #define REQ_SEND \ |
921 | req_send (req); \ |
975 | req_send (req); \ |
922 | \ |
976 | \ |
923 | if (GIMME_V != G_VOID) \ |
977 | if (GIMME_V != G_VOID) \ |
… | |
… | |
1198 | SV * callback |
1252 | SV * callback |
1199 | PROTOTYPE: ;$ |
1253 | PROTOTYPE: ;$ |
1200 | PPCODE: |
1254 | PPCODE: |
1201 | { |
1255 | { |
1202 | dREQ; |
1256 | dREQ; |
|
|
1257 | |
1203 | req->type = REQ_GROUP; |
1258 | req->type = REQ_GROUP; |
1204 | req_send (req); |
1259 | req_send (req); |
|
|
1260 | |
1205 | XPUSHs (req_sv (req, AIO_GRP_KLASS)); |
1261 | XPUSHs (req_sv (req, AIO_GRP_KLASS)); |
1206 | } |
1262 | } |
|
|
1263 | |
|
|
1264 | void |
|
|
1265 | aio_nop (callback=&PL_sv_undef) |
|
|
1266 | SV * callback |
|
|
1267 | PPCODE: |
|
|
1268 | { |
|
|
1269 | dREQ; |
|
|
1270 | |
|
|
1271 | req->type = REQ_NOP; |
|
|
1272 | |
|
|
1273 | REQ_SEND; |
|
|
1274 | } |
|
|
1275 | |
|
|
1276 | #if 0 |
|
|
1277 | |
|
|
1278 | void |
|
|
1279 | aio_pri (int pri = DEFAULT_PRI) |
|
|
1280 | CODE: |
|
|
1281 | if (pri < PRI_MIN) pri = PRI_MIN; |
|
|
1282 | if (pri > PRI_MAX) pri = PRI_MAX; |
|
|
1283 | next_pri = pri + PRI_BIAS; |
|
|
1284 | |
|
|
1285 | #endif |
1207 | |
1286 | |
1208 | void |
1287 | void |
1209 | flush () |
1288 | flush () |
1210 | PROTOTYPE: |
1289 | PROTOTYPE: |
1211 | CODE: |
1290 | CODE: |
… | |
… | |
1264 | cancel (aio_req_ornot req) |
1343 | cancel (aio_req_ornot req) |
1265 | PROTOTYPE: |
1344 | PROTOTYPE: |
1266 | CODE: |
1345 | CODE: |
1267 | req_cancel (req); |
1346 | req_cancel (req); |
1268 | |
1347 | |
|
|
1348 | void |
|
|
1349 | cb (aio_req_ornot req, SV *callback=&PL_sv_undef) |
|
|
1350 | CODE: |
|
|
1351 | SvREFCNT_dec (req->callback); |
|
|
1352 | req->callback = newSVsv (callback); |
|
|
1353 | |
1269 | MODULE = IO::AIO PACKAGE = IO::AIO::GRP |
1354 | MODULE = IO::AIO PACKAGE = IO::AIO::GRP |
1270 | |
1355 | |
1271 | void |
1356 | void |
1272 | add (aio_req grp, ...) |
1357 | add (aio_req grp, ...) |
1273 | PPCODE: |
1358 | PPCODE: |
1274 | { |
1359 | { |
1275 | int i; |
1360 | int i; |
|
|
1361 | aio_req req; |
1276 | |
1362 | |
1277 | if (grp->fd == 2) |
1363 | if (grp->fd == 2) |
1278 | croak ("cannot add requests to IO::AIO::GRP after the group finished"); |
1364 | croak ("cannot add requests to IO::AIO::GRP after the group finished"); |
1279 | |
1365 | |
1280 | for (i = 1; i < items; ++i ) |
1366 | for (i = 1; i < items; ++i ) |
1281 | { |
1367 | { |
1282 | if (GIMME_V != G_VOID) |
1368 | if (GIMME_V != G_VOID) |
1283 | XPUSHs (sv_2mortal (newSVsv (ST (i)))); |
1369 | XPUSHs (sv_2mortal (newSVsv (ST (i)))); |
1284 | |
1370 | |
1285 | aio_req req = SvAIO_REQ (ST (i)); |
1371 | req = SvAIO_REQ (ST (i)); |
1286 | |
1372 | |
1287 | if (req) |
1373 | if (req) |
1288 | { |
1374 | { |
1289 | ++grp->length; |
1375 | ++grp->length; |
1290 | req->grp = grp; |
1376 | req->grp = grp; |
… | |
… | |
1300 | } |
1386 | } |
1301 | } |
1387 | } |
1302 | |
1388 | |
1303 | void |
1389 | void |
1304 | result (aio_req grp, ...) |
1390 | result (aio_req grp, ...) |
1305 | CODE: |
1391 | CODE: |
1306 | { |
1392 | { |
1307 | int i; |
1393 | int i; |
1308 | AV *av = newAV (); |
1394 | AV *av = newAV (); |
1309 | |
1395 | |
1310 | for (i = 1; i < items; ++i ) |
1396 | for (i = 1; i < items; ++i ) |
1311 | av_push (av, newSVsv (ST (i))); |
1397 | av_push (av, newSVsv (ST (i))); |
1312 | |
1398 | |
1313 | SvREFCNT_dec (grp->data); |
1399 | SvREFCNT_dec (grp->data); |
1314 | grp->data = (SV *)av; |
1400 | grp->data = (SV *)av; |
1315 | } |
1401 | } |
1316 | |
1402 | |
1317 | void |
1403 | void |
1318 | feeder_limit (aio_req grp, int limit) |
1404 | feed_limit (aio_req grp, int limit) |
1319 | CODE: |
1405 | CODE: |
1320 | grp->fd2 = limit; |
1406 | grp->fd2 = limit; |
1321 | aio_grp_feed (grp); |
1407 | aio_grp_feed (grp); |
1322 | |
1408 | |
1323 | void |
1409 | void |
1324 | set_feeder (aio_req grp, SV *callback=&PL_sv_undef) |
1410 | feed (aio_req grp, SV *callback=&PL_sv_undef) |
1325 | CODE: |
1411 | CODE: |
1326 | { |
1412 | { |
1327 | SvREFCNT_dec (grp->fh2); |
1413 | SvREFCNT_dec (grp->fh2); |
1328 | grp->fh2 = newSVsv (callback); |
1414 | grp->fh2 = newSVsv (callback); |
1329 | |
1415 | |