Sönke Ludwig
59b25701ac
Remove DMD 2.070.x compatibility code.
2018-02-14 13:10:34 +01:00
Sebastian Wilzbach
0eed0fe8b7
Use the stable stdx-allocator DUB package
2017-12-03 20:38:07 +01:00
Boris-Barboris
6634cbc645
switch to asyncAwait
2017-11-25 15:27:17 +01:00
Sönke Ludwig
fc89257afd
Fixup for c95306245f
.
2017-10-31 23:04:13 +01:00
Sönke Ludwig
c95306245f
Improve InterfaceProxy(Class).
...
- InterfaceProxyClass can now be allocated/freed using a custom allocator
- Non-copyable values can be moved into an InterfaceProxyClass instance
- Non-copyable values can be moved into an InterfaceProxy
2017-10-30 23:01:22 +01:00
Sönke Ludwig
b68d23f515
Add opCast(bool) to FreeListRef and remove opAssign with value type.
2017-10-30 22:58:30 +01:00
Sönke Ludwig
ecd981b1e1
Fix compile error in internal API.
2017-10-30 22:56:19 +01:00
Sönke Ludwig
72540d7eaf
Work around DigitalMars/optlink#18 .
2017-09-27 17:43:08 +02:00
Sönke Ludwig
9fe9783443
Convert Waitable from struct to pure template to avoid heap closures.
...
Also fixes a case where ThreadLocalWaiter.emitSingle overlaps a call to .emit.
2017-09-27 16:41:11 +02:00
Sönke Ludwig
e32d818873
Add CircularDList.insertAfter.
2017-09-27 16:41:11 +02:00
Sönke Ludwig
a60828d6da
Mark more classes as final.
2017-07-23 15:04:11 +02:00
Sönke Ludwig
536fa09780
Add helper module with intrusive singly and doubly linked lists.
2017-07-20 13:34:39 +02:00
Sönke Ludwig
cfb4f83113
Add makeGCSafe/disposeGCSafe as GC safe variants of make/dispose.
...
If necessary, these will call GC.addRange/GC.removeRange to avoid dangling GC references.
2017-07-20 13:34:12 +02:00
Sönke Ludwig
7f050af455
Merge pull request #21 from wilzbach/trailing-whitespace
...
Remove all trailing whitespace + add check
2017-07-19 09:20:19 +02:00
Sönke Ludwig
3d1175e821
Fix InterfaceProxy when used with class instances.
2017-07-19 00:10:39 +02:00
Sebastian Wilzbach
8f89733a86
Remove all trailing whitespace
...
sed 's/[ \t]*$//' -i **/*.d
2017-07-03 12:19:27 +02:00
Sönke Ludwig
58ee4a8839
Use a thread local allocator instead of processAllocator in HashMap.
...
This is required since processAllocator returns an ISharedAlloactor since 2.075.0. Because HashMap is operating only thread-local, this should generally be safe.
2017-06-28 17:22:13 +02:00
Sönke Ludwig
6f78310f26
Use scope parameters for FixedRingBuffer as appropriate.
2017-02-22 19:51:15 +01:00
Sönke Ludwig
02e00944f6
Fix possible range violation in BatchBuffer.popFront(N).
2017-01-30 17:27:17 +01:00
Sönke Ludwig
3a3eb73006
Fix InterfaceProxy when used with class instances.
2017-01-27 00:51:22 +01:00
Sönke Ludwig
822dcccf34
Add interfaceProxy function to allow for better vibe:core compatibility.
2017-01-26 23:53:18 +01:00
Sönke Ludwig
8985923e4d
Let InterfaceProxy handle parameter storage classes properly.
2017-01-25 22:40:07 +01:00
Sönke Ludwig
9d4e8086ff
Make the callback type the first argument to Waitable!().
2017-01-16 00:23:37 +01:00
Sönke Ludwig
964d72f3b5
Fix handling of scoped callback parameters in eventcore callbacks.
2017-01-16 00:20:35 +01:00
Sönke Ludwig
32d360baac
Add callback based result retrieval for asyncAwaitAny.
...
This can be used to safely retrieve scoped data.
2017-01-15 23:55:37 +01:00
Sönke Ludwig
f015662a94
TCPConnection and async improvements.
...
- asyncAwaitAny now takes the callback type, so that parameter storage classes are handled correctly
- Implement TCPConnection.remoteAddress/localAddress
- Implement TCPConnection.tcpNoDelay, keepAlive and readTimeout
- Implement timeout handling for TCPConnection.waitForData
2017-01-15 20:59:36 +01:00
Sönke Ludwig
35a94412d0
Make FileStream small enough to fit into an InterfaceProxy.
2016-12-26 21:28:36 +01:00
Sönke Ludwig
09d9ea47bf
Fix InterfaceProxy to not explicitly destroy contained class instances.
...
This lead to double-destruction in case an InterfaceProxy was copied.
2016-12-10 14:21:57 +01:00
Sönke Ludwig
81b7010724
Fix some safety annotation issues.
2016-11-10 12:19:39 +01:00
Sönke Ludwig
ccbd6a063f
Fix FreeListRef related issues.
2016-11-10 12:01:35 +01:00
Sönke Ludwig
18a5afddc4
Fix test compilation on DMD 2.071.x.
2016-11-08 15:41:59 +01:00
Sönke Ludwig
f74c30a9f3
Use std.experimental.allocator and remove the custom allocator module.
2016-11-08 15:32:25 +01:00
Sönke Ludwig
55a06c30f3
Add missing interface proxy module.
2016-11-08 14:48:38 +01:00
Sönke Ludwig
eb0697d6e4
Let types that implicitly convert to interface pass interface check.
...
"null" in particular is now considered to pass the interface conformance check.
2016-11-05 01:42:20 +01:00
Sönke Ludwig
9cfb702f0b
Fix deprecation warnings.
2016-11-05 01:41:15 +01:00
Sönke Ludwig
a8cd1be065
More safe-ty.
2016-11-05 01:06:11 +01:00
Sönke Ludwig
9df6874a55
Annotate FreeListRef safe as far as possible.
2016-11-05 00:58:51 +01:00
Sönke Ludwig
b96c20ef54
Fix interface conformance checks.
...
- Now includes final interface methods
- Properly checks attributes
2016-11-02 20:59:19 +01:00
Sönke Ludwig
616130cef1
Safe-ify internal code.
2016-11-02 20:53:30 +01:00
Sönke Ludwig
0ee42c4243
Add vibe.d 0.7.x compatible stream definitions.
...
In contrast to 0.7.x, streams can now be either of class, struct or interface type.
2016-10-26 13:11:28 +02:00
Sönke Ludwig
4db9b3f100
Implement DNS lookups and partially implement UDP.
2016-10-25 00:27:51 +02:00
Sönke Ludwig
c08f101549
Update for eventcore 0.5.0 and the latest DMD beta.
2016-10-24 08:22:49 +02:00
Sönke Ludwig
e294d24a4b
Update for latest eventcore version.
2016-10-05 14:40:29 +02:00
Sönke Ludwig
1c2850f99f
Make all low-level asnyc log messages opt-in.
2016-10-04 17:51:24 +02:00
Sönke Ludwig
ff8882976d
Fix BatchBuffer.read.
2016-10-04 17:50:13 +02:00
Sönke Ludwig
1005f5c674
Fix all ManualEvent related tests.
2016-06-17 22:33:04 +02:00
Sönke Ludwig
a74a89cab7
Fix scope issues in asyncAwait.
2016-06-15 18:21:04 +02:00
Sönke Ludwig
48131ce7b8
Implement generic asyncAwaitAny.
...
This enables waiting for multiple events at the same time. Generic timeout functionality is now also implemented.
2016-06-14 09:26:12 +02:00
Sönke Ludwig
3b0e4e0452
Big refactoring step.
...
- Moves a lot of stuff from vibe.core.core to vibe.core.task
- Introduces TaskScheduler to unify the scheduling process
- Refines how tasks are scheduled and processed (can push to the front of the task queue and uses a marker task to keep track of the spot up to which to process)
- Start to add proper support for task interrupts and timeouts by properly cancelling in-flight async operations
- Work on ManualEvent - still not functional for the shared case
- Implement proper IP address parsing in NetworkAddress
2016-06-14 08:01:03 +02:00
Sönke Ludwig
ba48a6f43a
Use BatchBuffer instead of FixedRingBuffer for TCP read.
2016-04-10 17:17:15 +02:00