1.1 --- a/libfsserver/lib/pipes/pipe_paging.cc Mon Jul 12 22:52:52 2021 +0200
1.2 +++ b/libfsserver/lib/pipes/pipe_paging.cc Mon Jul 12 23:18:16 2021 +0200
1.3 @@ -43,29 +43,6 @@
1.4 _regions[i] = NULL;
1.5 }
1.6
1.7 -/* Subscribe to an endpoint's notifications using a notifier object. */
1.8 -
1.9 -void PipePaging::subscribe(bool writing, l4_cap_idx_t notifier, notify_flags_t flags)
1.10 -{
1.11 - NotificationSupport::subscribe(writing ? 1 : 0, notifier, flags);
1.12 -}
1.13 -
1.14 -/* Unsubscribe from an endpoint's notifications. */
1.15 -
1.16 -void PipePaging::unsubscribe(bool writing, l4_cap_idx_t notifier)
1.17 -{
1.18 - NotificationSupport::unsubscribe(writing ? 1 : 0, notifier);
1.19 -}
1.20 -
1.21 -/* Notify the other endpoint. */
1.22 -
1.23 -void PipePaging::notify(bool writing, notify_flags_t flags)
1.24 -{
1.25 - /* Let the writer notify the reader, and the other way round. */
1.26 -
1.27 - NotificationSupport::notify(writing ? 0 : 1, flags);
1.28 -}
1.29 -
1.30 /* Return whether one or more endpoints have detached. */
1.31
1.32 int PipePaging::closed()
1.33 @@ -142,7 +119,7 @@
1.34
1.35 /* Let the writer notify the reader. */
1.36
1.37 - notify(true, NOTIFY_CONTENT_AVAILABLE);
1.38 + notify_others(PipePaging::WRITER, NOTIFY_CONTENT_AVAILABLE);
1.39
1.40 /* Return the next region's mapper. */
1.41
1.42 @@ -177,7 +154,7 @@
1.43
1.44 /* Let the reader notify the writer. */
1.45
1.46 - notify(false, NOTIFY_SPACE_AVAILABLE);
1.47 + notify_others(PipePaging::READER, NOTIFY_SPACE_AVAILABLE);
1.48
1.49 /* Return the next region's mapper. */
1.50