Revision: 2674
http://tmux.svn.sourceforge.net/tmux/?rev=2674&view=rev
Author: tcunha
Date: 2012-01-23 12:24:00 +0000 (Mon, 23 Jan 2012)
Log Message:
-----------
Sync OpenBSD patchset 1011:
Remove unused backoff code that doesn't do any good.
Modified Paths:
--------------
trunk/server-client.c
trunk/tmux.h
Modified: trunk/server-client.c
===================================================================
--- trunk/server-client.c 2012-01-23 12:23:27 UTC (rev 2673)
+++ trunk/server-client.c 2012-01-23 12:24:00 UTC (rev 2674)
@@ -560,50 +560,6 @@
c->flags &= ~CLIENT_EXIT;
}
-/*
- * Check if the client should backoff. During backoff, data from external
- * programs is not written to the terminal. When the existing data drains, the
- * client is redrawn.
- *
- * There are two backoff phases - both the tty and client have backoff flags -
- * the first to allow existing data to drain and the latter to ensure backoff
- * is disabled until the redraw has finished and prevent the redraw triggering
- * another backoff.
- */
-void
-server_client_check_backoff(struct client *c)
-{
- struct tty *tty = &c->tty;
- size_t used;
-
- used = EVBUFFER_LENGTH(tty->event->output);
-
- /*
- * If in the second backoff phase (redrawing), don't check backoff
- * until the redraw has completed (or enough of it to drop below the
- * backoff threshold).
- */
- if (c->flags & CLIENT_BACKOFF) {
- if (used > BACKOFF_THRESHOLD)
- return;
- c->flags &= ~CLIENT_BACKOFF;
- return;
- }
-
- /* Once drained, allow data through again and schedule redraw. */
- if (tty->flags & TTY_BACKOFF) {
- if (used != 0)
- return;
- tty->flags &= ~TTY_BACKOFF;
- c->flags |= (CLIENT_BACKOFF|CLIENT_REDRAWWINDOW|CLIENT_STATUS);
- return;
- }
-
- /* If too much data, start backoff. */
- if (used > BACKOFF_THRESHOLD)
- tty->flags |= TTY_BACKOFF;
-}
-
/* Check for client redraws. */
void
server_client_check_redraw(struct client *c)
Modified: trunk/tmux.h
===================================================================
--- trunk/tmux.h 2012-01-23 12:23:27 UTC (rev 2673)
+++ trunk/tmux.h 2012-01-23 12:24:00 UTC (rev 2674)
@@ -1164,8 +1164,7 @@
#define CLIENT_DEAD 0x200
#define CLIENT_BORDERS 0x400
#define CLIENT_READONLY 0x800
-#define CLIENT_BACKOFF 0x1000
-#define CLIENT_REDRAWWINDOW 0x2000
+#define CLIENT_REDRAWWINDOW 0x1000
int flags;
struct event identify_timer;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs