summaryrefslogtreecommitdiff
path: root/xserver/dix/dixutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/dix/dixutils.c')
-rw-r--r--xserver/dix/dixutils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/xserver/dix/dixutils.c b/xserver/dix/dixutils.c
index 540023cbd..2983174a1 100644
--- a/xserver/dix/dixutils.c
+++ b/xserver/dix/dixutils.c
@@ -508,6 +508,19 @@ WorkQueuePtr workQueue;
static WorkQueuePtr *workQueueLast = &workQueue;
void
+ClearWorkQueue(void)
+{
+ WorkQueuePtr q, *p;
+
+ p = &workQueue;
+ while ((q = *p)) {
+ *p = q->next;
+ free(q);
+ }
+ workQueueLast = p;
+}
+
+void
ProcessWorkQueue(void)
{
WorkQueuePtr q, *p;