Commit Graph
25 Commits
Author SHA1 Message Date
Norman Maurer 58d0883b2d Fork Future-Swift and adjust it to ensure callback execution is always done on the EventLoop.
- Also remove all methods that use Dispatch for now as we not need these
- Ensure we will detect if the user calls a blocking method while on the EventLoop and crash to guard against deadlock
2017-06-12 13:44:10 +02:00
Norman Maurer cd4866152d No need to allocate and free the iovec array all the time as we can just pin it on the EventLoop 2017-06-08 15:45:48 +02:00
Norman Maurer aa1f7d04ed Tighten up API and access rights 2017-06-07 11:15:06 +02:00
Kevin Clark 329b474f45 Initial impl of EmbeddedChannel 2017-06-05 16:59:51 -07:00
Johannes Weiß 2d97c8c25d make the selector ready function take a closure instead of returning array 2017-06-02 17:34:08 +01:00
Norman Maurer 29b4ad373b Correctly distribute work across EVentLoops 2017-06-01 17:59:50 +02:00
Norman Maurer c8eb940aa7 Add support for running multiple EventLoops 2017-05-30 14:09:02 +02:00
Norman Maurer db2002840d Add Channel.connect(...) and needed methods to Socket to support connect. This will allow us to support client and server easily in the future. 2017-05-24 22:13:17 +02:00
Norman Maurer 49733ebccf Introduce SelectorStrategy which allows different kinds of select events. This will be needed later on 2017-05-24 11:56:29 +02:00
Norman Maurer f933093a1e Introduce ServerSocketChannel which will accept SocketChannel instances. Now the ServerSocket and the Socket are both handled directly via the EventLoop and make use of the pipeline just like in Netty. 2017-05-23 14:53:21 +02:00
Norman Maurer 66c02bf30b Ensure the EventLoop is currently only accessed from the same thread 2017-05-18 08:58:47 +02:00
Norman Maurer 4b4c3c2dbd Simplify eventloop handling 2017-05-15 22:42:36 +02:00
Norman Maurer 18a844a633 Cleaner handling for registering for InterestedEvents 2017-05-15 22:32:52 +02:00
Norman Maurer 13b7b61b9a Ensure we correctly handle EOF when read and also that we never re-register when the Channel was closed 2017-05-15 20:26:07 +02:00
Norman Maurer a4fc805685 Ensure we not re-register on the eventLoop once the channel was already closed 2017-05-15 19:32:08 +02:00
Norman Maurer d626e49b2f Make inEventLoop a property 2017-05-14 21:09:46 +02:00
Norman Maurer d839ed1c52 Remove a few reference-cycles and so memory leaks 2017-05-14 20:41:38 +02:00
Norman Maurer 6587222278 Make the pipeline more usable by adding add/remove/contains methods 2017-05-11 13:29:35 +02:00
Norman Maurer 41484d1c85 Add ChannelConfig and make a few things configurable 2017-05-11 12:44:01 +02:00
Norman Maurer 6f54d3cd3b Cleanup init code 2017-05-11 08:15:33 +02:00
Norman Maurer 6a55209cb7 Only call accept() one time per EventLoop run 2017-05-09 20:21:49 +02:00
Norman Maurer a5276fd4d1 Add methods to create promise / future from EventLoop 2017-05-09 20:07:34 +02:00
Norman Maurer 91301591ea Move register / deregister / reregister code to EventLoop 2017-05-09 19:33:31 +02:00
Norman Maurer 90d2e5a2e1 Add register and unregister callbacks 2017-05-09 19:23:39 +02:00
Norman Maurer e193bc97f0 Split into two different modules 2017-05-09 12:50:19 +02:00