;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (test-workers) #:use-module (guix workers) #:use-module (ice-9 threads) #:use-module (srfi srfi-64)) (test-begin "workers") (test-equal "enqueue" 4242 (let* ((pool (make-pool)) (result 0) (1+! (let ((lock (make-mutex))) (lambda () (with-mutex lock (set! result (+ result 1))))))) (let loop ((i 4242)) (unless (zero? i) (pool-enqueue! pool 1+!) (loop (- i 1)))) (let poll () (unless (pool-idle? pool) (pk 'busy result) (sleep 1) (poll))) result)) ;; Same as above, but throw exceptions within the workers and make sure they ;; remain alive. (test-equal "exceptions" 4242 (let* ((pool (make-pool 10)) (result 0) (1+! (let ((lock (make-mutex))) (lambda () (with-mutex lock (set! result (+ result 1))))))) (let loop ((i 10)) (unless (zero? i) (pool-enqueue! pool (lambda () (throw 'whatever))) (loop (- i 1)))) (let loop ((i 4242)) (unless (zero? i) (pool-enqueue! pool 1+!) (loop (- i 1)))) (let poll () (unless (pool-idle? pool) (pk 'busy result) (sleep 1) (poll))) result)) (test-end) f0729533c791d06cd0d3f001fb5df03eacb433'>gnu/packages/sdl.scm
AgeCommit message (Expand)Author
2022-10-23gnu: guile-sdl2: Update to 0.8.0....* gnu/packages/sdl.scm (guile-sdl2): Update to 0.8.0. Liliana Marie Prikler
2022-10-04gnu: sdl2: Use ibus-minimal instead of ibus....This prevents an input cycle between GTK -> ffmpeg -> sdl2 -> ibus -> GTK. * gnu/packages/sdl.scm (sdl2)[inputs]: Replace ibus with ibus-minimal. Liliana Marie Prikler
2022-10-02gnu: ffmpeg@4: Build against SDL2 2.0 so 'ffplay' gets built....Fixes <https://issues.guix.gnu.org/58090>. Reported by Zhu Zihao <all_but_last@163.com>. * gnu/packages/sdl.scm (sdl2-2.0): New variable. * gnu/packages/video.scm (ffmpeg-4)[inputs]: New field. Ludovic Courtès
2022-09-13gnu: sdl2: Update to 2.24.0, use gexps and remove input labels....* gnu/packages/sdl.scm (sdl2): Update to 2.24.0. [arguments]: Use gexps. [inputs]: Use modify-inputs and remove labels. Maxim Cournoyer
2022-09-01gnu: Delete mono and dependent packages....Fixes <https://issues.guix.gnu.org/55026>. * gnu/packages/mono.scm: Delete file. * gnu/packages/patches/mono-mdoc-timestamping.patch: Likewise. * gnu/local.mk (GNU_SYSTEM_MODULES): De-register module file. (dist_patch_DATA): Re-register patch file. * gnu/packages/game-development.scm (fna): Delete variable. * gnu/packages/gl.scm (mojoshader-cs): Likewise. * gnu/packages/sdl.scm (sdl2-cs): Likewise. Maxim Cournoyer
2022-09-01bug#22020: [PATCH] gnu: guile-sdl: Update to 0.6.1....Fixes <https://issues.guix.gnu.org/22020>. * gnu/packages/sdl.scm (guile-sdl): Update to 0.6.1. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Thiago Jung Bauermann