Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev no need to poll for pending drawing op...
details: https://anonhg.NetBSD.org/src/rev/cf70d678b8ef
branches: trunk
changeset: 772346:cf70d678b8ef
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Dec 30 14:22:41 2011 +0000
description:
no need to poll for pending drawing ops if no client is connected
diffstat:
sys/arch/usermode/dev/vncfb.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ddc8b09dfcca -r cf70d678b8ef sys/arch/usermode/dev/vncfb.c
--- a/sys/arch/usermode/dev/vncfb.c Fri Dec 30 14:20:33 2011 +0000
+++ b/sys/arch/usermode/dev/vncfb.c Fri Dec 30 14:22:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vncfb.c,v 1.7 2011/12/30 14:20:33 jmcneill Exp $ */
+/* $NetBSD: vncfb.c,v 1.8 2011/12/30 14:22:41 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -35,7 +35,7 @@
#include "opt_wsemul.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.7 2011/12/30 14:20:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vncfb.c,v 1.8 2011/12/30 14:22:41 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -357,7 +357,8 @@
/* barrier */
while (sc->sc_rfb.nupdates > 0)
- thunk_rfb_poll(&sc->sc_rfb, NULL);
+ if (thunk_rfb_poll(&sc->sc_rfb, NULL) == -1)
+ break;
ops->copyrows(ri, srcrow, dstrow, nrows);
Home |
Main Index |
Thread Index |
Old Index