From bc50ff07676fa0b15df3aa2ae7e54936a8f81f95 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 12 Aug 2013 15:01:42 +0300 Subject: server: move three functions to red_channel Three blocking functions, one was split to leave the display channel specific referencing of the DrawablePipeItem being sent inside red_worker, but the rest (most) of the timeout logic was moved to red_channel, including the associated constants. Moved functions: red_channel_client_wait_pipe_item_sent red_wait_outgoing_item red_wait_all_sent Introduces red_time.h & red_time.c for a small helper function dealing with time.h --- server/red_channel.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/red_channel.h') diff --git a/server/red_channel.h b/server/red_channel.h index 0dd73ea8..b2a3a6ad 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -596,4 +596,14 @@ int red_client_during_migrate_at_target(RedClient *client); void red_client_migrate(RedClient *client); +/* blocking function */ +void red_channel_client_wait_pipe_item_sent(RedChannelClient *rcc, + PipeItem *item); + +/* blocking function */ +void red_wait_outgoing_item(RedChannelClient *rcc); + +/* blocking function */ +void red_wait_all_sent(RedChannel *channel); + #endif -- cgit