diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-30 17:57:48 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-04-30 17:57:48 +0930 |
commit | a0e6a7d4f507c5c0a0b11adb10394af58a0a6e07 (patch) | |
tree | 7e439f054087de4e929839571e923dcb1a7b0c46 /mi/mi.h | |
parent | fea39c94bcc8b635d37530d8a27ee92acab484fe (diff) |
dix: resize EQ to minimum size to avoid reallocs during SIGIO.
When a new device is added, calculate the event size needed if a DCCE event is
sent and set the EQ's event size to this minimum. This avoids reallocs when a
event is sent (which may happen during a SIGIO).
Diffstat (limited to 'mi/mi.h')
-rw-r--r-- | mi/mi.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -153,6 +153,10 @@ extern Bool mieqInit( void ); +extern void mieqResize( + int /* min_size */ +); + extern void mieqEnqueue( DeviceIntPtr /*pDev*/, xEventPtr /*e*/ |