FreeBSD Bugzilla – Attachment 173608 Details for
Bug 211791
games/xmris: Fix 100% CPU utilisation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
updated patch file
patch-timer.c (text/plain), 998 bytes, created by
steven@freebsd-bugzilla.sdwmail.homeunix.org
on 2016-08-12 19:58:12 UTC
(
hide
)
Description:
updated patch file
Filename:
MIME Type:
Creator:
steven@freebsd-bugzilla.sdwmail.homeunix.org
Created:
2016-08-12 19:58:12 UTC
Size:
998 bytes
patch
obsolete
>*** timer.c.orig Fri Dec 22 04:08:21 1995 >--- timer.c Fri Aug 12 11:58:07 2016 >*************** >*** 85,91 **** > sigprocmask(SIG_BLOCK, &temp, (maskp)); \ > } > # define signal_release(maskp) sigprocmask(SIG_SETMASK, maskp, (MASK *)NULL) >! # define signal_pause(maskp) sigpause(*(maskp)) > #else > # ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */ > /* don't know if this is right */ >--- 85,91 ---- > sigprocmask(SIG_BLOCK, &temp, (maskp)); \ > } > # define signal_release(maskp) sigprocmask(SIG_SETMASK, maskp, (MASK *)NULL) >! # define signal_pause(maskp) sigsuspend(maskp) > #else > # ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */ > /* don't know if this is right */ >*************** >*** 572,578 **** >--- 572,581 ---- > else > { > while(!tickafter(now, timer.timeout)) >+ { >+ usleep(tickdelta(timer.timeout, now) * TICKTIME); > gettick(&now); >+ } > timer.timeout = tickadd(timer.timeout, timer.delay); > point = -1; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211791
: 173608