diff options
| author | Andy Wingo <wingo@pobox.com> | 2017-08-06 12:59:50 +0200 |
|---|---|---|
| committer | Andy Wingo <wingo@pobox.com> | 2017-08-06 12:59:50 +0200 |
| commit | 2a4f707827105d041668f34b62daaff871c22c07 (patch) | |
| tree | 81797ea023d5c0ce12d7150aa0d5133406b5e305 /tests | |
| parent | Garbage collect old condition waiters. (diff) | |
| download | guile-fibers-2a4f707827105d041668f34b62daaff871c22c07.tar.gz | |
Rebase fibers on top of schedulers and tasks
This commit refactors fibers to be based on lighter-weight "tasks",
and makes the scheduler API more orthogonal. Now there are no more
fiber objects (although the fibers layer could re-add them if they are
useful), and fibers no longer have names (although again this could be
re-added at an upper layer). Also it's the current scheduler that's
bound by a parameter, not the current fiber, and as it's a thread-safe
parameter it doesn't need to be bound in each fiber.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/channels.scm | 3 | ||||
| -rw-r--r-- | tests/preemption.scm | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/channels.scm b/tests/channels.scm index 67fa9aa..68c98c9 100644 --- a/tests/channels.scm +++ b/tests/channels.scm @@ -17,7 +17,8 @@ ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ;;;; -(define-module (tests cml) +(define-module (tests channels) + #:use-module ((ice-9 threads) #:select (current-processor-count)) #:use-module (fibers) #:use-module (fibers channels)) diff --git a/tests/preemption.scm b/tests/preemption.scm index 1886560..e2395cf 100644 --- a/tests/preemption.scm +++ b/tests/preemption.scm @@ -20,7 +20,7 @@ (define-module (tests parameters) #:use-module (ice-9 atomic) #:use-module (fibers) - #:use-module (fibers internal)) + #:use-module (fibers scheduler)) (define failed? #f) |
