Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-11-18 | libdraw: avoid deadlock for mouse ioproc sending on resizec | cinap_lenrek | |
a deadlock has been observed with samterm (thanks burnzez), that shows the mouse ioproc being stuck in sending on the resize channel, while the mouse consumer is stuck in a readmouse() loop wanting a rectangle to be drawn by the user: recv(v=0x42df50)+0x28 /sys/src/libthread/channel.c:321 readmouse(mc=0x42df50)+0x54 /sys/src/libdraw/mouse.c:34 getrect(.ret=0x41bce0,but=0x4,mc=0x42df50)+0x62 /sys/src/libdraw/getrect.c:49 r=0x41bc70 rc=0x41bc70 getr(rp=0x41bce0)+0x24 /sys/src/cmd/samterm/main.c:244 p=0x6b000004f6 r=0x2 sweeptext(new=0x0,tag=0x2d)+0x12 /sys/src/cmd/samterm/menu.c:208 r=0x2 t=0x42df50 inmesg(type=0x2,count=0x2)+0x1ab /sys/src/cmd/samterm/mesg.c:136 m=0x10000002d l=0x2d00001b00 i=0x43829000000001 t=0x438290 lp=0x42e050 rcv()+0x7a /sys/src/cmd/samterm/mesg.c:77 threadmain(argv=0x7ffffeffef90)+0x173 /sys/src/cmd/samterm/main.c:63 so avoid blocking in the mouse ioproc by using nbsend() instead of send() for writing to the resize channel. | |||
2018-07-23 | libdraw: accept unsigned msec timestamp in /dev/mouse | cinap_lenrek | |
2016-03-13 | libdraw: don't flush in readmouse() when theres nothing to flush | cinap_lenrek | |
2015-09-20 | libdraw, screenrc: bind devdraw and devmouse in screenrc instead of handling ↵ | cinap_lenrek | |
it in libdraw libdraw was attempting to bind '#i' and '#m' to /dev when it could not find /dev/mouse or /dev/draw. a library shouldnt be that clever and do namespace manipulations on behalf of the caller. so instead, we setup the graphics environment in screenrc on boot time. | |||
2013-04-27 | libdraw: avoid printing error on closemouse() | cinap_lenrek | |
2013-04-27 | libdraw: exit mouseproc() on read error instead of spinning | cinap_lenrek | |
2011-10-02 | libdraw: shutdown keyboard and mouseprocs with threadint, libthread: avoid ↵ | glenda | |
delayed note leak (this fixes the "too many delayed notes" error with auth/fgui) | |||
2011-03-30 | Import sources from 2011-03-30 iso image - lib | Taru Karttunen | |
2011-03-30 | Import sources from 2011-03-30 iso image | Taru Karttunen | |