Commit b241a3e
committed
select: Allow registering cleanup method for the callback
This commit adds the registerCleanupFunc method for the callback
passed to the stream implementation. It allows the stream
implementation to optionally register a cleanup function that will be
invoked when select is no longer interested in the stream events. This
enables the stream implementation to perform additional cleanups such
as discarding the reference to the event callback.
Signed-off-by: Kohei Tokunaga <[email protected]>1 parent 586aaa7 commit b241a3e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
668 | 669 | | |
669 | 670 | | |
670 | 671 | | |
| |||
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| 679 | + | |
678 | 680 | | |
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
682 | 687 | | |
683 | 688 | | |
684 | 689 | | |
| |||
716 | 721 | | |
717 | 722 | | |
718 | 723 | | |
| 724 | + | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
| |||
0 commit comments