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).
This commit is contained in:
Peter Hutterer 2008-04-30 17:57:48 +09:30
commit a0e6a7d4f5
3 changed files with 15 additions and 0 deletions

View file

@ -153,6 +153,10 @@ extern Bool mieqInit(
void
);
extern void mieqResize(
int /* min_size */
);
extern void mieqEnqueue(
DeviceIntPtr /*pDev*/,
xEventPtr /*e*/