make stack requirements more explicit.

This commit is contained in:
rsc 2004-04-21 22:46:39 +00:00
parent 3151bc58b8
commit 63b6732301
3 changed files with 3 additions and 2 deletions

View file

@ -21,6 +21,7 @@ __xtoplan9kbd(XEvent *e)
if(e->xany.type != KeyPress)
return -1;
needstack(20*1024); /* X has some *huge* buffers in openobject */
XLookupString((XKeyEvent*)e,NULL,0,&k,NULL);
if(k == XK_Multi_key || k == NoSymbol)
return -1;

View file

@ -74,7 +74,7 @@ initkeyboard(char *file)
if(kc == nil)
return nil;
kc->c = chancreate(sizeof(Rune), 20);
threadcreate(_ioproc, kc, 16384);
threadcreate(_ioproc, kc, 32768);
return kc;
}

View file

@ -139,7 +139,7 @@ initmouse(char *file, Image *i)
mc->display = i->display;
mc->c = chancreate(sizeof(Mouse), 0);
mc->resizec = chancreate(sizeof(int), 2);
threadcreate(_ioproc, mc, 16384);
threadcreate(_ioproc, mc, 32768);
return mc;
}