aboutsummaryrefslogtreecommitdiff
path: root/guix-build-coordinator
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-05-10 20:33:26 +0100
committerChristopher Baines <mail@cbaines.net>2024-05-10 21:08:01 +0100
commit527fa6c657b25f3fd9f007b1cdf5b2b5dac75d0a (patch)
treedde2261c45c91c537ec2567d3d1bd6fbfea17c34 /guix-build-coordinator
parent2800a89314f48ba2d089e2ba61fe086438ca13b2 (diff)
downloadbuild-coordinator-527fa6c657b25f3fd9f007b1cdf5b2b5dac75d0a.tar
build-coordinator-527fa6c657b25f3fd9f007b1cdf5b2b5dac75d0a.tar.gz
Remove with-timeout
As it's now unused.
Diffstat (limited to 'guix-build-coordinator')
-rw-r--r--guix-build-coordinator/utils.scm24
1 files changed, 0 insertions, 24 deletions
diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm
index 297d777..c6c2d59 100644
--- a/guix-build-coordinator/utils.scm
+++ b/guix-build-coordinator/utils.scm
@@ -85,9 +85,6 @@
create-work-queue
create-thread-pool
- with-timeout
- reset-timeout
-
throttle
get-load-average
@@ -1266,27 +1263,6 @@ References: ~a~%"
(values pool-mutex job-available count-threads list-jobs)))
-;; copied from (guix scripts substitute)
-(define-syntax-rule (with-timeout duration handler body ...)
- "Run BODY; when DURATION seconds have expired, call HANDLER, and run BODY
-again."
- (begin
- (sigaction SIGALRM
- (lambda (signum)
- (sigaction SIGALRM SIG_DFL)
- handler))
- (alarm duration)
- (call-with-values
- (lambda ()
- body ...)
- (lambda result
- (alarm 0)
- (sigaction SIGALRM SIG_DFL)
- (apply values result)))))
-
-(define (reset-timeout duration)
- (alarm duration))
-
(define (throttle min-duration thunk)
(let ((next-min-runtime 0))
(lambda ()