ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.16 by root, Sun Jul 31 18:20:07 2005 UTC vs.
Revision 1.29 by root, Wed Aug 17 06:12:10 2005 UTC

1#define _REENTRANT 1
2#include <errno.h>
3
1#include "EXTERN.h" 4#include "EXTERN.h"
2#include "perl.h" 5#include "perl.h"
3#include "XSUB.h" 6#include "XSUB.h"
4 7
5#include "autoconf/config.h" 8#include "autoconf/config.h"
26 29
27enum { 30enum {
28 REQ_QUIT, 31 REQ_QUIT,
29 REQ_OPEN, REQ_CLOSE, 32 REQ_OPEN, REQ_CLOSE,
30 REQ_READ, REQ_WRITE, REQ_READAHEAD, 33 REQ_READ, REQ_WRITE, REQ_READAHEAD,
31 REQ_STAT, REQ_LSTAT, REQ_FSTAT, REQ_UNLINK, 34 REQ_STAT, REQ_LSTAT, REQ_FSTAT,
32 REQ_FSYNC, REQ_FDATASYNC, 35 REQ_FSYNC, REQ_FDATASYNC,
36 REQ_UNLINK, REQ_RMDIR,
37 REQ_SYMLINK,
33}; 38};
34 39
35typedef struct aio_cb { 40typedef struct aio_cb {
36 struct aio_cb *volatile next; 41 struct aio_cb *volatile next;
37 42
42 size_t length; 47 size_t length;
43 ssize_t result; 48 ssize_t result;
44 mode_t mode; /* open */ 49 mode_t mode; /* open */
45 int errorno; 50 int errorno;
46 SV *data, *callback, *fh; 51 SV *data, *callback, *fh;
47 void *dataptr; 52 void *dataptr, *data2ptr;
48 STRLEN dataoffset; 53 STRLEN dataoffset;
49 54
50 Stat_t *statdata; 55 Stat_t *statdata;
51} aio_cb; 56} aio_cb;
52 57
61static pthread_mutex_t reqlock = PTHREAD_MUTEX_INITIALIZER; 66static pthread_mutex_t reqlock = PTHREAD_MUTEX_INITIALIZER;
62static pthread_cond_t reqwait = PTHREAD_COND_INITIALIZER; 67static pthread_cond_t reqwait = PTHREAD_COND_INITIALIZER;
63 68
64static volatile aio_req reqs, reqe; /* queue start, queue end */ 69static volatile aio_req reqs, reqe; /* queue start, queue end */
65static volatile aio_req ress, rese; /* queue start, queue end */ 70static volatile aio_req ress, rese; /* queue start, queue end */
71
72static void free_req (aio_req req)
73{
74 if (req->data)
75 SvREFCNT_dec (req->data);
76
77 if (req->fh)
78 SvREFCNT_dec (req->fh);
79
80 if (req->statdata)
81 Safefree (req->statdata);
82
83 if (req->callback)
84 SvREFCNT_dec (req->callback);
85
86 Safefree (req);
87}
66 88
67static void 89static void
68poll_wait () 90poll_wait ()
69{ 91{
70 if (nreqs && !ress) 92 if (nreqs && !ress)
80static int 102static int
81poll_cb () 103poll_cb ()
82{ 104{
83 dSP; 105 dSP;
84 int count = 0; 106 int count = 0;
107 int do_croak = 0;
85 aio_req req, prv; 108 aio_req req;
86 109
87 pthread_mutex_lock (&reslock); 110 for (;;)
88
89 {
90 /* read any signals sent by the worker threads */
91 char buf [32];
92 while (read (respipe [0], buf, 32) > 0)
93 ;
94 }
95
96 req = ress;
97 ress = rese = 0;
98
99 pthread_mutex_unlock (&reslock);
100
101 while (req)
102 { 111 {
112 pthread_mutex_lock (&reslock);
113 req = ress;
114
115 if (req)
116 {
117 ress = req->next;
118
119 if (!ress)
120 {
121 rese = 0;
122
123 /* read any signals sent by the worker threads */
124 char buf [32];
125 while (read (respipe [0], buf, 32) == 32)
126 ;
127 }
128 }
129
130 pthread_mutex_unlock (&reslock);
131
132 if (!req)
133 break;
134
103 nreqs--; 135 nreqs--;
104 136
105 if (req->type == REQ_QUIT) 137 if (req->type == REQ_QUIT)
106 started--; 138 started--;
107 else 139 else
108 { 140 {
109 int errorno = errno; 141 int errorno = errno;
110 errno = req->errorno; 142 errno = req->errorno;
111 143
112 if (req->type == REQ_READ) 144 if (req->type == REQ_READ)
113 SvCUR_set (req->data, req->dataoffset 145 SvCUR_set (req->data, req->dataoffset + (req->result > 0 ? req->result : 0));
114 + req->result > 0 ? req->result : 0);
115 146
147 if (req->data2ptr && (req->type == REQ_READ || req->type == REQ_WRITE))
148 SvREADONLY_off (req->data);
149
116 if (req->data) 150 if (req->statdata)
117 SvREFCNT_dec (req->data);
118
119 if (req->fh)
120 SvREFCNT_dec (req->fh);
121
122 if (req->type == REQ_STAT || req->type == REQ_LSTAT || req->type == REQ_FSTAT)
123 { 151 {
124 PL_laststype = req->type == REQ_LSTAT ? OP_LSTAT : OP_STAT; 152 PL_laststype = req->type == REQ_LSTAT ? OP_LSTAT : OP_STAT;
125 PL_laststatval = req->result; 153 PL_laststatval = req->result;
126 PL_statcache = *(req->statdata); 154 PL_statcache = *(req->statdata);
127
128 Safefree (req->statdata);
129 } 155 }
130 156
131 ENTER; 157 ENTER;
132 PUSHMARK (SP); 158 PUSHMARK (SP);
133 XPUSHs (sv_2mortal (newSViv (req->result))); 159 XPUSHs (sv_2mortal (newSViv (req->result)));
150 if (SvOK (req->callback)) 176 if (SvOK (req->callback))
151 { 177 {
152 PUTBACK; 178 PUTBACK;
153 call_sv (req->callback, G_VOID | G_EVAL); 179 call_sv (req->callback, G_VOID | G_EVAL);
154 SPAGAIN; 180 SPAGAIN;
181
182 if (SvTRUE (ERRSV))
183 {
184 free_req (req);
185 croak (0);
186 }
155 } 187 }
156 188
157 LEAVE; 189 LEAVE;
158
159 if (req->callback)
160 SvREFCNT_dec (req->callback);
161 190
162 errno = errorno; 191 errno = errorno;
163 count++; 192 count++;
164 } 193 }
165 194
166 prv = req; 195 free_req (req);
167 req = req->next;
168 Safefree (prv);
169
170 /* TODO: croak on errors? */
171 } 196 }
172 197
173 return count; 198 return count;
174} 199}
175 200
213 reqe = reqs = req; 238 reqe = reqs = req;
214 239
215 pthread_cond_signal (&reqwait); 240 pthread_cond_signal (&reqwait);
216 pthread_mutex_unlock (&reqlock); 241 pthread_mutex_unlock (&reqlock);
217 242
218 while (nreqs > max_outstanding) 243 if (nreqs > max_outstanding)
244 for (;;)
245 {
246 poll_cb ();
247
248 if (nreqs <= max_outstanding)
249 break;
250
251 poll_wait ();
252 }
253}
254
255static void
256end_thread (void)
257{
258 aio_req req;
259 Newz (0, req, 1, aio_cb);
260 req->type = REQ_QUIT;
261
262 send_req (req);
263}
264
265static void min_parallel (int nthreads)
266{
267 while (nthreads > started)
268 start_thread ();
269}
270
271static void max_parallel (int nthreads)
272{
273 int cur = started;
274
275 while (cur > nthreads)
276 {
277 end_thread ();
278 cur--;
279 }
280
281 while (started > nthreads)
219 { 282 {
220 poll_wait (); 283 poll_wait ();
221 poll_cb (); 284 poll_cb ();
222 } 285 }
223} 286}
224 287
225static void 288static void create_pipe ()
226end_thread (void)
227{ 289{
290 if (pipe (respipe))
291 croak ("unable to initialize result pipe");
292
293 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK))
294 croak ("cannot set result pipe to nonblocking mode");
295
296 if (fcntl (respipe [1], F_SETFL, O_NONBLOCK))
297 croak ("cannot set result pipe to nonblocking mode");
298}
299
300static void atfork_prepare (void)
301{
302 pthread_mutex_lock (&reqlock);
303 pthread_mutex_lock (&reslock);
304}
305
306static void atfork_parent (void)
307{
308 pthread_mutex_unlock (&reslock);
309 pthread_mutex_unlock (&reqlock);
310}
311
312static void atfork_child (void)
313{
228 aio_req req; 314 aio_req prv;
229 New (0, req, 1, aio_cb);
230 req->type = REQ_QUIT;
231 315
232 send_req (req); 316 int restart = started;
317 started = 0;
318
319 while (reqs)
320 {
321 prv = reqs;
322 reqs = prv->next;
323 free_req (prv);
324 }
325
326 reqs = reqe = 0;
327
328 while (ress)
329 {
330 prv = ress;
331 ress = prv->next;
332 free_req (prv);
333 }
334
335 ress = rese = 0;
336
337 close (respipe [0]);
338 close (respipe [1]);
339 create_pipe ();
340
341 atfork_parent ();
342
343 min_parallel (restart);
233} 344}
345
346/*****************************************************************************/
347/* work around various missing functions */
348
349#if !HAVE_PREADWRITE
350# define pread aio_pread
351# define pwrite aio_pwrite
352
353/*
354 * make our pread/pwrite safe against themselves, but not against
355 * normal read/write by using a mutex. slows down execution a lot,
356 * but that's your problem, not mine.
357 */
358static pthread_mutex_t iolock = PTHREAD_MUTEX_INITIALIZER;
359
360static ssize_t
361pread (int fd, void *buf, size_t count, off_t offset)
362{
363 ssize_t res;
364 off_t ooffset;
365
366 pthread_mutex_lock (&iolock);
367 ooffset = lseek (fd, 0, SEEK_CUR);
368 lseek (fd, offset, SEEK_SET);
369 res = read (fd, buf, count);
370 lseek (fd, ooffset, SEEK_SET);
371 pthread_mutex_unlock (&iolock);
372
373 return res;
374}
375
376static ssize_t
377pwrite (int fd, void *buf, size_t count, off_t offset)
378{
379 ssize_t res;
380 off_t ooffset;
381
382 pthread_mutex_lock (&iolock);
383 ooffset = lseek (fd, 0, SEEK_CUR);
384 lseek (fd, offset, SEEK_SET);
385 res = write (fd, buf, count);
386 lseek (fd, offset, SEEK_SET);
387 pthread_mutex_unlock (&iolock);
388
389 return res;
390}
391#endif
392
393#if !HAVE_FDATASYNC
394# define fdatasync fsync
395#endif
396
397#if !HAVE_READAHEAD
398# define readahead aio_readahead
399
400static char readahead_buf[4096];
401
402static ssize_t
403readahead (int fd, off_t offset, size_t count)
404{
405 while (count > 0)
406 {
407 size_t len = count < sizeof (readahead_buf) ? count : sizeof (readahead_buf);
408
409 pread (fd, readahead_buf, len, offset);
410 offset += len;
411 count -= len;
412 }
413
414 errno = 0;
415}
416#endif
417
418/*****************************************************************************/
234 419
235static void * 420static void *
236aio_proc (void *thr_arg) 421aio_proc (void *thr_arg)
237{ 422{
238 aio_req req; 423 aio_req req;
264 449
265 type = req->type; 450 type = req->type;
266 451
267 switch (type) 452 switch (type)
268 { 453 {
269#if HAVE_PREADWRITE
270 case REQ_READ: req->result = pread (req->fd, req->dataptr, req->length, req->offset); break; 454 case REQ_READ: req->result = pread (req->fd, req->dataptr, req->length, req->offset); break;
271 case REQ_WRITE: req->result = pwrite (req->fd, req->dataptr, req->length, req->offset); break; 455 case REQ_WRITE: req->result = pwrite (req->fd, req->dataptr, req->length, req->offset); break;
272#else
273# error "pread/pwrite cannot be emulated, fix your os"
274#endif
275 456
276#if HAVE_READAHEAD
277 case REQ_READAHEAD: req->result = readahead (req->fd, req->offset, req->length); break; 457 case REQ_READAHEAD: req->result = readahead (req->fd, req->offset, req->length); break;
278#else
279 // TODO: emulate
280 case REQ_READAHEAD: req->result = -1; errno = ENOSYS; break;
281#endif
282 458
283 case REQ_STAT: req->result = stat (req->dataptr, req->statdata); break; 459 case REQ_STAT: req->result = stat (req->dataptr, req->statdata); break;
284 case REQ_LSTAT: req->result = lstat (req->dataptr, req->statdata); break; 460 case REQ_LSTAT: req->result = lstat (req->dataptr, req->statdata); break;
285 case REQ_FSTAT: req->result = fstat (req->fd , req->statdata); break; 461 case REQ_FSTAT: req->result = fstat (req->fd , req->statdata); break;
286 462
287 case REQ_OPEN: req->result = open (req->dataptr, req->fd, req->mode); break; 463 case REQ_OPEN: req->result = open (req->dataptr, req->fd, req->mode); break;
288 case REQ_CLOSE: req->result = close (req->fd); break; 464 case REQ_CLOSE: req->result = close (req->fd); break;
289 case REQ_UNLINK: req->result = unlink (req->dataptr); break; 465 case REQ_UNLINK: req->result = unlink (req->dataptr); break;
466 case REQ_RMDIR: req->result = rmdir (req->dataptr); break;
467 case REQ_SYMLINK: req->result = symlink (req->data2ptr, req->dataptr); break;
290 468
291 case REQ_FDATASYNC: 469 case REQ_FDATASYNC: req->result = fdatasync (req->fd); break;
292#if HAVE_FDATASYNC
293 req->result = fdatasync (req->fd); break;
294#endif
295 case REQ_FSYNC: req->result = fsync (req->fd); break; 470 case REQ_FSYNC: req->result = fsync (req->fd); break;
296 471
297 case REQ_QUIT: 472 case REQ_QUIT:
298 break; 473 break;
299 474
326 while (type != REQ_QUIT); 501 while (type != REQ_QUIT);
327 502
328 return 0; 503 return 0;
329} 504}
330 505
506#define dREQ \
507 aio_req req; \
508 \
509 if (SvOK (callback) && !SvROK (callback)) \
510 croak ("clalback must be undef or of reference type"); \
511 \
512 Newz (0, req, 1, aio_cb); \
513 if (!req) \
514 croak ("out of memory during aio_req allocation"); \
515 \
516 req->callback = newSVsv (callback);
517
331MODULE = IO::AIO PACKAGE = IO::AIO 518MODULE = IO::AIO PACKAGE = IO::AIO
332 519
333PROTOTYPES: ENABLE 520PROTOTYPES: ENABLE
334 521
335BOOT: 522BOOT:
336{ 523{
337 if (pipe (respipe)) 524 create_pipe ();
338 croak ("unable to initialize result pipe"); 525 pthread_atfork (atfork_prepare, atfork_parent, atfork_child);
339
340 if (fcntl (respipe [0], F_SETFL, O_NONBLOCK))
341 croak ("cannot set result pipe to nonblocking mode");
342
343 if (fcntl (respipe [1], F_SETFL, O_NONBLOCK))
344 croak ("cannot set result pipe to nonblocking mode");
345} 526}
346 527
347void 528void
348min_parallel(nthreads) 529min_parallel(nthreads)
349 int nthreads 530 int nthreads
350 PROTOTYPE: $ 531 PROTOTYPE: $
351 CODE:
352 while (nthreads > started)
353 start_thread ();
354 532
355void 533void
356max_parallel(nthreads) 534max_parallel(nthreads)
357 int nthreads 535 int nthreads
358 PROTOTYPE: $ 536 PROTOTYPE: $
359 CODE:
360{
361 int cur = started;
362 while (cur > nthreads)
363 {
364 end_thread ();
365 cur--;
366 }
367
368 while (started > nthreads)
369 {
370 poll_wait ();
371 poll_cb ();
372 }
373}
374 537
375int 538int
376max_outstanding(nreqs) 539max_outstanding(nreqs)
377 int nreqs 540 int nreqs
378 PROTOTYPE: $ 541 PROTOTYPE: $
387 int mode 550 int mode
388 SV * callback 551 SV * callback
389 PROTOTYPE: $$$;$ 552 PROTOTYPE: $$$;$
390 CODE: 553 CODE:
391{ 554{
392 aio_req req; 555 dREQ;
393
394 Newz (0, req, 1, aio_cb);
395
396 if (!req)
397 croak ("out of memory during aio_req allocation");
398 556
399 req->type = REQ_OPEN; 557 req->type = REQ_OPEN;
400 req->data = newSVsv (pathname); 558 req->data = newSVsv (pathname);
401 req->dataptr = SvPV_nolen (req->data); 559 req->dataptr = SvPVbyte_nolen (req->data);
402 req->fd = flags; 560 req->fd = flags;
403 req->mode = mode; 561 req->mode = mode;
404 req->callback = SvREFCNT_inc (callback);
405 562
406 send_req (req); 563 send_req (req);
407} 564}
408 565
409void 566void
415 aio_close = REQ_CLOSE 572 aio_close = REQ_CLOSE
416 aio_fsync = REQ_FSYNC 573 aio_fsync = REQ_FSYNC
417 aio_fdatasync = REQ_FDATASYNC 574 aio_fdatasync = REQ_FDATASYNC
418 CODE: 575 CODE:
419{ 576{
420 aio_req req; 577 dREQ;
421
422 Newz (0, req, 1, aio_cb);
423
424 if (!req)
425 croak ("out of memory during aio_req allocation");
426 578
427 req->type = ix; 579 req->type = ix;
428 req->fh = newSVsv (fh); 580 req->fh = newSVsv (fh);
429 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh))); 581 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh)));
430 req->callback = SvREFCNT_inc (callback);
431 582
432 send_req (req); 583 send_req (req);
433} 584}
434 585
435void 586void
446 PROTOTYPE: $$$$$;$ 597 PROTOTYPE: $$$$$;$
447 CODE: 598 CODE:
448{ 599{
449 aio_req req; 600 aio_req req;
450 STRLEN svlen; 601 STRLEN svlen;
451 char *svptr = SvPV (data, svlen); 602 char *svptr = SvPVbyte (data, svlen);
452 603
453 SvUPGRADE (data, SVt_PV); 604 SvUPGRADE (data, SVt_PV);
454 SvPOK_on (data); 605 SvPOK_on (data);
455 606
456 if (dataoffset < 0) 607 if (dataoffset < 0)
472 } 623 }
473 624
474 if (length < 0) 625 if (length < 0)
475 croak ("length must not be negative"); 626 croak ("length must not be negative");
476 627
477 Newz (0, req, 1, aio_cb); 628 {
629 dREQ;
478 630
479 if (!req)
480 croak ("out of memory during aio_req allocation");
481
482 req->type = ix; 631 req->type = ix;
483 req->fh = newSVsv (fh); 632 req->fh = newSVsv (fh);
484 req->fd = PerlIO_fileno (ix == REQ_READ ? IoIFP (sv_2io (fh)) 633 req->fd = PerlIO_fileno (ix == REQ_READ ? IoIFP (sv_2io (fh))
485 : IoOFP (sv_2io (fh))); 634 : IoOFP (sv_2io (fh)));
486 req->offset = offset; 635 req->offset = offset;
487 req->length = length; 636 req->length = length;
488 req->data = SvREFCNT_inc (data); 637 req->data = SvREFCNT_inc (data);
489 req->dataptr = (char *)svptr + dataoffset; 638 req->dataptr = (char *)svptr + dataoffset;
490 req->callback = SvREFCNT_inc (callback);
491 639
640 if (!SvREADONLY (data))
641 {
642 SvREADONLY_on (data);
643 req->data2ptr = (void *)data;
644 }
645
492 send_req (req); 646 send_req (req);
647 }
493} 648}
494 649
495void 650void
496aio_readahead(fh,offset,length,callback=&PL_sv_undef) 651aio_readahead(fh,offset,length,callback=&PL_sv_undef)
497 SV * fh 652 SV * fh
499 IV length 654 IV length
500 SV * callback 655 SV * callback
501 PROTOTYPE: $$$;$ 656 PROTOTYPE: $$$;$
502 CODE: 657 CODE:
503{ 658{
504 aio_req req; 659 dREQ;
505
506 if (length < 0)
507 croak ("length must not be negative");
508
509 Newz (0, req, 1, aio_cb);
510
511 if (!req)
512 croak ("out of memory during aio_req allocation");
513 660
514 req->type = REQ_READAHEAD; 661 req->type = REQ_READAHEAD;
515 req->fh = newSVsv (fh); 662 req->fh = newSVsv (fh);
516 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh))); 663 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh)));
517 req->offset = offset; 664 req->offset = offset;
518 req->length = length; 665 req->length = length;
519 req->callback = SvREFCNT_inc (callback);
520 666
521 send_req (req); 667 send_req (req);
522} 668}
523 669
524void 670void
528 ALIAS: 674 ALIAS:
529 aio_stat = REQ_STAT 675 aio_stat = REQ_STAT
530 aio_lstat = REQ_LSTAT 676 aio_lstat = REQ_LSTAT
531 CODE: 677 CODE:
532{ 678{
533 aio_req req; 679 dREQ;
534
535 Newz (0, req, 1, aio_cb);
536
537 if (!req)
538 croak ("out of memory during aio_req allocation");
539 680
540 New (0, req->statdata, 1, Stat_t); 681 New (0, req->statdata, 1, Stat_t);
541
542 if (!req->statdata) 682 if (!req->statdata)
683 {
684 free_req (req);
543 croak ("out of memory during aio_req->statdata allocation"); 685 croak ("out of memory during aio_req->statdata allocation");
686 }
544 687
545 if (SvPOK (fh_or_path)) 688 if (SvPOK (fh_or_path))
546 { 689 {
547 req->type = ix; 690 req->type = ix;
548 req->data = newSVsv (fh_or_path); 691 req->data = newSVsv (fh_or_path);
549 req->dataptr = SvPV_nolen (req->data); 692 req->dataptr = SvPVbyte_nolen (req->data);
550 } 693 }
551 else 694 else
552 { 695 {
553 req->type = REQ_FSTAT; 696 req->type = REQ_FSTAT;
554 req->fh = newSVsv (fh_or_path); 697 req->fh = newSVsv (fh_or_path);
555 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh_or_path))); 698 req->fd = PerlIO_fileno (IoIFP (sv_2io (fh_or_path)));
556 } 699 }
557 700
558 req->callback = SvREFCNT_inc (callback);
559
560 send_req (req); 701 send_req (req);
561} 702}
562 703
563void 704void
564aio_unlink(pathname,callback=&PL_sv_undef) 705aio_unlink(pathname,callback=&PL_sv_undef)
565 SV * pathname 706 SV * pathname
566 SV * callback 707 SV * callback
708 ALIAS:
709 aio_unlink = REQ_UNLINK
710 aio_rmdir = REQ_RMDIR
567 CODE: 711 CODE:
568{ 712{
569 aio_req req; 713 dREQ;
570 714
571 Newz (0, req, 1, aio_cb); 715 req->type = ix;
716 req->data = newSVsv (pathname);
717 req->dataptr = SvPVbyte_nolen (req->data);
572 718
573 if (!req) 719 send_req (req);
574 croak ("out of memory during aio_req allocation"); 720}
721
722void
723aio_symlink(oldpath,newpath,callback=&PL_sv_undef)
724 SV * oldpath
725 SV * newpath
726 SV * callback
727 CODE:
728{
729 dREQ;
575 730
576 req->type = REQ_UNLINK; 731 req->type = REQ_SYMLINK;
732 req->fh = newSVsv (oldpath);
733 req->data2ptr = SvPVbyte_nolen (req->fh);
577 req->data = newSVsv (pathname); 734 req->data = newSVsv (newpath);
578 req->dataptr = SvPV_nolen (req->data); 735 req->dataptr = SvPVbyte_nolen (req->data);
579 req->callback = SvREFCNT_inc (callback);
580 736
581 send_req (req); 737 send_req (req);
582} 738}
583 739
584void 740void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines