Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 21:52:51 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r425032 - in branches/2016Q4/games/xmris: . files
Message-ID:  <201610312152.u9VLqpqX000767@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Mon Oct 31 21:52:51 2016
New Revision: 425032
URL: https://svnweb.freebsd.org/changeset/ports/425032

Log:
  MFH: r424989
  
  Fix 100% CPU utilization (runtime tested on FreeBSD 11.0, i386)
  Bump PORTREVISION
  
  PR:		211791
  Submitted by:	<steven@freebsd-bugzilla.sdwmail.homeunix.org>
  
  Approved by:	ports-secteam (feld)

Modified:
  branches/2016Q4/games/xmris/Makefile
  branches/2016Q4/games/xmris/files/patch-timer.c
Directory Properties:
  branches/2016Q4/   (props changed)

Modified: branches/2016Q4/games/xmris/Makefile
==============================================================================
--- branches/2016Q4/games/xmris/Makefile	Mon Oct 31 21:51:26 2016	(r425031)
+++ branches/2016Q4/games/xmris/Makefile	Mon Oct 31 21:52:51 2016	(r425032)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xmris
 PORTVERSION=	4.04
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	games
 MASTER_SITES=	XCONTRIB/games
 DISTNAME=	${PORTNAME}.${PORTVERSION}

Modified: branches/2016Q4/games/xmris/files/patch-timer.c
==============================================================================
--- branches/2016Q4/games/xmris/files/patch-timer.c	Mon Oct 31 21:51:26 2016	(r425031)
+++ branches/2016Q4/games/xmris/files/patch-timer.c	Mon Oct 31 21:52:51 2016	(r425032)
@@ -9,3 +9,14 @@
  #else
  #  ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */
  /* don't know if this is right */
+@@ -572,7 +572,10 @@ extern VOIDFUNC timer_wait FUNCARGVOID
+       else
+ 	{
+ 	  while(!tickafter(now, timer.timeout))
++	  {
++	    usleep(tickdelta(timer.timeout, now) * TICKTIME);
+ 	    gettick(&now);
++	  }
+ 	  timer.timeout = tickadd(timer.timeout, timer.delay);
+ 	  point = -1;
+ 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610312152.u9VLqpqX000767>