summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Factor interrupt generation to separate facilityAndy Wingo2016-12-164-61/+121
| | | | | | | | | | * fibers/interrupts.scm: New file. * fibers/internal.scm (<scheduler>): Remove Hz field and adapt users. (run-scheduler): Remove preemption; (fibers) handles this now. (yield-current-fiber): New primitive. * fibers.scm (run-fibers): Use interrupts module and wrap run-scheduler in `with-interrupts'. * Makefile.am: Add new file.
* Add posix-clocks.scmAndy Wingo2016-12-162-0/+167
| | | | | * fibers/posix-clocks.scm: New file. * Makefile.am: Add new file.
* Add support for preemptionAndy Wingo2016-12-126-47/+154
| | | | | | | | | | | | | * Makefile.am: Add new test. * TODO.md: Remove stale TODO entries. * fibers.scm (run-fibers): Add #:hz parameter. * fibers.texi (Design): Mention that we support preemption. (Using Fibers): Update for preemption. * fibers/internal.scm (<scheduler>): Add hz field. (make-scheduler): Add #:hz initarg. (maybe-preemptive): New helper. (run-scheduler): Use maybe-preemptive. * tests/preemption.scm: New test.
* Minor documentation tweakAndy Wingo2016-12-121-4/+6
| | | | | * fibers.texi (Barriers): Prefer the word "suspendable" over "rewindable".
* Error on attempt to suspend unsuspendable continuationsAndy Wingo2016-12-121-2/+9
| | | | | * fibers/internal.scm (suspend-current-fiber): Error if the fiber is not suspendable.
* Fix manual buildAndy Wingo2016-12-121-2/+2
| | | | * fibers.texi: Fix Continuation Barriers xref.
* Add scary words about mutexesAndy Wingo2016-12-121-3/+38
| | | | * fibers.texi (Mutexes): New section.
* Add manual section on continuation barriers.Andy Wingo2016-12-121-1/+85
| | | | * fibers.texi (Barriers): New section.
* Update spawn-fiber documentationAndy Wingo2016-12-121-1/+7
|
* Describe fibers as being Go-like rather than Erlang-like.Andy Wingo2016-12-121-2/+2
| | | | * README.md: Update.
* Fibers inherit dynamic state of parent.Andy Wingo2016-12-123-3/+81
| | | | | | * fibers.scm (spawn-fiber): Fibers inherit dynamic state of parent. * tests/parameters.scm: New test. * Makefile.am: Add new file.
* Import (ice-9 threads) to avoid deprecation warningsAndy Wingo2016-12-122-0/+2
| | | | | * fibers/internal.scm: * fibers/repl.scm: Explicitly import (ice-9 threads).
* Merge pull request #4 from vyp/typoAndy Wingo2016-10-191-2/+2
|\ | | | | fibers/internal: comment typos
| * fibers/internal: comment typosxd1le2016-10-041-2/+2
| |
* | 0.3.0v0.3.0Andy Wingo2016-10-122-3/+3
| | | | | | | | | | * configure.ac: * fibers.texi: Bump version.
* | Update documentationAndy Wingo2016-10-121-27/+189
| | | | | | | | * fibers.texi: Update.
* | create-fiber does not return the fiberAndy Wingo2016-10-121-2/+1
| | | | | | | | * fibers/internal.scm (create-fiber): Don't return the fiber.
* | Rename choose to choiceAndy Wingo2016-10-121-3/+3
| | | | | | | | | | * fibers/operations.scm (choice-operation): Rename from choose-operation.
* | Internals twiddlesAndy Wingo2016-10-122-16/+18
| | | | | | | | | | | | | | | | * fibers/internal.scm (current-scheduler/public): Document. (current-fiber/public): New accessor. (resume-on-timer): Document. * fibers.scm: Adapt to use current-fiber directly from the internals. Remove kill-fiber.
* | Rework internals resume interfaceAndy Wingo2016-10-123-26/+37
| | | | | | | | | | | | | | | | * fibers/internal.scm (resume-on-fd-events, resume-on-readable-fd) (resume-on-writable-fd, resume-on-timer): Rework primitive resume interface. * fibers.scm: * fibers/timers.scm: Adapt users.
* | Update documentation.Andy Wingo2016-10-125-37/+85
| |
* | Epoll handles event buffer size itselfAndy Wingo2016-10-122-12/+18
| | | | | | | | | | | | * fibers/epoll.scm: Internall handle `maxevents'. * fibers/internal.scm (schedule-runnables-for-next-turn): Update for epoll interface change.
* | fiber-continuationAndy Wingo2016-10-122-11/+11
| | | | | | | | | | | | * fibers/internal.scm: Rename fiber-data to fiber-continuation. Adapt all users. * fibers/repl.scm: Adapt.
* | Minor fibers/internal cleanups.Andy Wingo2016-10-121-7/+0
| | | | | | | | * fibers/internal.scm: Minor cleanups.
* | Move wake facility to epoll moduleAndy Wingo2016-10-112-88/+86
| | | | | | | | | | | | * fibers/epoll.scm: Move wake facility here. Note that due to a miscompilation in Guile 2.1.4, this requires a patch from Git master. * fibers/internal.scm: Adapt to change.
* | Lighter fibersAndy Wingo2016-10-113-80/+47
| | | | | | | | | | | | | | | | | | | | * fibers/internal.scm: Remove fiber-state; this is managed implicitly now by ensuring that a fiber is only resumed at most once per suspend. We no longer record fiber return values; that should be up to the fiber's init continuation. Replace scheduler inbox with making the runqueue atomic. * fibers.scm (run-fibers): Adapt to run-scheduler change. * fibers/repl.scm (fibers): Adapt to fiber-data change.
* | Runnables refactorAndy Wingo2016-10-112-27/+45
| | | | | | | | | | | | | | | | * fibers/deque.scm (empty-deque?, dequeue-all, dequeue-all!): New interfaces. (update!): New helper. (enqueue!): Use new helper. * fibers/internal.scm: Use deque instead of stack for runnables.
* | Factor out deque implementationAndy Wingo2016-10-113-48/+78
| | | | | | | | | | | | * fibers/deque.scm: Factor out to helper module. * Makefile.am: Add deque.scm. * fibers/channels.scm: Use (fibers deque).
* | Internal channels refactorAndy Wingo2016-10-111-27/+28
| | | | | | | | * fibers/channels.scm: Queue is really a deque; refer to it as such.
* | Update fibers.texi.Andy Wingo2016-10-111-26/+101
|/ | | | * fibers.texi: Update.
* Fix scheduler busy-waiting bugAndy Wingo2016-10-031-9/+11
| | | | | * fibers/internal.scm (schedule-runnables-for-next-turn): Fix bug where we were busy-waiting when there were no active fd's.
* Timeout CML operationsAndy Wingo2016-10-034-16/+59
| | | | | | | * fibers/timers.scm: New file. * fibers/internal.scm (add-timer!): Take expiry as absolute time. * fibers.scm (fibers): Re-export sleep from (fibers timers). * Makefile.am: Adapt.
* Sleep refactorAndy Wingo2016-10-032-45/+38
| | | | | | * fibers/internal.scm: Rename sleepers to timers, and be callbacks instead of waking fibers directly. * fibers.scm (sleep): Adapt.
* Reimplement in terms of Parallel Concurrent MLAndy Wingo2016-10-035-101/+542
| | | | | | | | * fibers/operations.scm: New file. * fibers/channels.scm: Reimplement in terms of operations (CML events). * tests/basic.scm: Remove channels tests. * tests/channels.scm: Add channels tests. * Makefile.am: Update for new files.
* Add support for ,spawn-fiberAndy Wingo2016-09-203-34/+149
|
* Update TODO.mdAndy Wingo2016-09-201-18/+16
|
* Add ,fibers command.Andy Wingo2016-09-205-1/+69
|
* Add fibers and schedulers to namesetsAndy Wingo2016-09-191-8/+19
| | | | | | * fibers/internal.scm (fibers-nameset, schedulers-nameset): Add schedulers and fibers to namesets. Appears to slow down fiber creation by 2X; oh well?
* Add nameset to name fibers and schedulersAndy Wingo2016-09-192-0/+74
| | | | | * fibers/nameset.scm: New file. * Makefile.am (SOURCES): Add new file.
* Update Guile dep.Andy Wingo2016-09-141-1/+1
|
* Update documentation.v0.2.0Andy Wingo2016-09-111-2/+271
| | | | * fibers.texi: Update.
* Remove `sleep' export from (fibers internal)Andy Wingo2016-09-111-1/+0
| | | | * fibers/internal.scm: Remove `sleep' export.
* Release preparationsAndy Wingo2016-09-113-2/+19
| | | | | | * README: New link to README.md, to make automake --gnu happe. * configure.ac: Bump version in anticipation of release. * fibers.texi: Start to flesh out a bit more.
* README in markdown formAndy Wingo2016-09-113-56/+91
| | | | | * README.md: Change to markdown. * Makefile.am: Update.
* Minor TODO.md updatesAndy Wingo2016-09-111-20/+20
| | | | * TODO.md: Minor updates.
* Merge pull request #3 from codemac/buildfixesAndy Wingo2016-09-111-1/+1
|\ | | | | Makefile.am: Use $(GUILE) for running tests
| * Makefile.am: Use $(GUILE) for running testsJeff Mickey2016-09-081-1/+1
| |
* | Work around autoreconf bugAndy Wingo2016-09-112-1/+0
| | | | | | | | | | * build-aux/config.rpath: New file, fixes autoreconf failure (https://github.com/wingo/fibers/issues/1).
* | Update .gitignoreAndy Wingo2016-09-111-0/+2
| | | | | | | | * .gitignore: Update.
* | Add TODO.mdAndy Wingo2016-09-111-0/+154
| | | | | | | | * TODO.md: New file.