Use std.experimental.allocator and remove the custom allocator module.
This commit is contained in:
parent
55a06c30f3
commit
f74c30a9f3
9 changed files with 278 additions and 915 deletions
|
@ -17,7 +17,6 @@ import std.typetuple;
|
|||
import std.variant;
|
||||
import std.string;
|
||||
import vibe.core.task;
|
||||
//import vibe.utils.memory;
|
||||
|
||||
public import std.concurrency;
|
||||
|
||||
|
@ -1075,7 +1074,7 @@ template isCopyable(T)
|
|||
value.
|
||||
*/
|
||||
struct Future(T) {
|
||||
import vibe.internal.memory : FreeListRef;
|
||||
import vibe.internal.freelistref : FreeListRef;
|
||||
|
||||
private {
|
||||
FreeListRef!(shared(T)) m_result;
|
||||
|
@ -1129,7 +1128,7 @@ Future!(ReturnType!CALLABLE) async(CALLABLE, ARGS...)(CALLABLE callable, ARGS ar
|
|||
if (is(typeof(callable(args)) == ReturnType!CALLABLE))
|
||||
{
|
||||
import vibe.core.core;
|
||||
import vibe.internal.memory : FreeListRef;
|
||||
import vibe.internal.freelistref : FreeListRef;
|
||||
import std.functional : toDelegate;
|
||||
|
||||
alias RET = ReturnType!CALLABLE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue