Commit Graph
24 Commits
Author SHA1 Message Date
Alex Crichton e8dd1893f3 Fix a bug with most recent tokio-core release 2018-03-09 11:27:50 -08:00
Alex Crichton 21e178854b Fix compile on Android
Closes #19
2018-01-31 07:05:26 -08:00
Alex Crichton dba5c5014a Update to winapi 0.3 2018-01-03 08:41:41 -08:00
Alex Crichton 601a3228de Update to tokio-io 2017-03-15 10:36:37 -07:00
Alex Crichton a90aac53cc Merge pull request #8 from vorner/infinite-token
Use IDs that don't run out
2017-01-26 15:36:03 -08:00
Michal 'vorner' Vaner a9257477e0 Style: Replace tabs with spaces
Mixing tabs and spaces breaks indentation for people (and github) if
they use different tab width.
2017-01-26 21:26:58 +01:00
Michal 'vorner' Vaner 390b8d3cc5 Use IDs that don't run out
Replace the sequential counting (which might be exhausted) by an address
of an object (in a box, so it doesn't change). This is also a unique, so
it is acceptable ID.
2017-01-26 21:22:19 +01:00
Alex Crichton ba19515833 Clarify a comment 2017-01-24 10:59:31 -08:00
Alex Crichton a21153a0e9 Clear out old Signal on drop 2017-01-24 10:54:55 -08:00
Alex Crichton 83a5277af1 Touch up more impls and comments 2017-01-24 10:47:09 -08:00
Alex Crichton b748fa955c Handle a few more errors 2017-01-24 10:06:54 -08:00
Alex Crichton 277fff43f5 Various cleanups:
* Drop nix/lazy_static
* Use previously registered handlers
* Handle some more errors
2017-01-24 10:02:42 -08:00
Michal 'vorner' Vaner a02a38fbae The driver task
Add the driver task, connecting the signal handler wakeups to the
wakeups of of the streams.

It is a prototype-quality code, a lot of cleanups and similar is needed.
2017-01-22 14:48:22 +01:00
Michal 'vorner' Vaner f7167b48a7 Provide the new kind of Signal stream
Which is just a wrapper around the futures::sync::mpsc. The sender is in
a global registry.

The part that connects the wakeups to the senders in the registry
doesn't yet exist.
2017-01-22 12:58:48 +01:00
Michal 'vorner' Vaner 8abc26df39 Implement the wake-up part of the new signal handling
Register the signal handler that wakes up someone through a self-pipe.
That someone doesn't yet exist, though.

Some dependencies (nix, lazy_static) added to speed up the prototyping
process. They are likely to be dropped in some future commits.

Some features (eg. preserving the previous signal handlers) are still
missing.
2017-01-22 12:27:03 +01:00
Alex Crichton a3c07eb771 Remove deprecated API usage on Windows 2017-01-12 10:29:22 -08:00
Alex Crichton 18776138ad Remove use of deprecated APIs on Unix 2017-01-12 10:25:51 -08:00
Alex Crichton b726610e7f Ignore errors in signal handler
Closes #3
2017-01-11 10:21:01 -08:00
Alex Crichton 72283f178a Remove SIGKILL reexport 2016-10-05 13:55:45 -07:00
Alex Crichton 202220034e Add symbolic reexports for common signals
Means you don't have to import libc!

Closes #1
2016-10-05 08:58:06 -07:00
Alex Crichton 69ced1b6da Start adding windows support 2016-09-08 17:28:44 -07:00
Alex Crichton 17481a3a54 Track tokio-core master 2016-09-07 22:14:54 -07:00
Alex Crichton 06153d0f28 Add docs and travis 2016-09-07 00:03:43 -07:00
Alex Crichton 50973e0734 Initial commit 2016-09-06 23:00:17 -07:00