Keyboard should never get stuck again when receiving huge amounts of

text from server that irssi doesn't handle fast enough.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@710 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-01 22:12:01 +00:00 committed by cras
commit 0158782b02
4 changed files with 24 additions and 8 deletions

View file

@ -58,8 +58,8 @@ static int irssi_io_invoke(GIOChannel *source, GIOCondition condition,
return TRUE;
}
int g_input_add(int source, GInputCondition condition,
GInputFunction function, void *data)
int g_input_add_full(int source, int priority, GInputCondition condition,
GInputFunction function, void *data)
{
IRSSI_INPUT_REC *rec;
unsigned int result;
@ -78,13 +78,20 @@ int g_input_add(int source, GInputCondition condition,
cond |= G_IO_OUT;
channel = g_io_channel_unix_new (source);
result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond,
result = g_io_add_watch_full(channel, priority, cond,
irssi_io_invoke, rec, g_free);
g_io_channel_unref(channel);
return result;
}
int g_input_add(int source, GInputCondition condition,
GInputFunction function, void *data)
{
return g_input_add_full(source, G_PRIORITY_DEFAULT, condition,
function, data);
}
long get_timeval_diff(const GTimeVal *tv1, const GTimeVal *tv2)
{
long secs, usecs;