Fix accessibility issue for std.concurrency.send.

This commit is contained in:
Sönke Ludwig 2017-01-30 09:43:43 +01:00
parent 84a21f7e9d
commit 76df9212ef
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

@ -10,6 +10,8 @@
*/ */
module vibe.core.concurrency; module vibe.core.concurrency;
public import std.concurrency;
import core.time; import core.time;
import std.traits; import std.traits;
import std.typecons; import std.typecons;
@ -18,7 +20,6 @@ import std.variant;
import std.string; import std.string;
import vibe.core.task; import vibe.core.task;
public import std.concurrency;
private extern (C) pure nothrow void _d_monitorenter(Object h); private extern (C) pure nothrow void _d_monitorenter(Object h);
private extern (C) pure nothrow void _d_monitorexit(Object h); private extern (C) pure nothrow void _d_monitorexit(Object h);
@ -1213,7 +1214,10 @@ void setConcurrencyPrimitive(ConcurrencyPrimitive primitive)
} }
void send(ARGS...)(Task task, ARGS args) { std.concurrency.send(task.tid, args); } void send(ARGS...)(Task task, ARGS args) { std.concurrency.send(task.tid, args); }
void send(ARGS...)(Tid tid, ARGS args) { std.concurrency.send(tid, args); }
void prioritySend(ARGS...)(Task task, ARGS args) { std.concurrency.prioritySend(task.tid, args); } void prioritySend(ARGS...)(Task task, ARGS args) { std.concurrency.prioritySend(task.tid, args); }
void prioritySend(ARGS...)(Tid tid, ARGS args) { std.concurrency.prioritySend(tid, args); }
package class VibedScheduler : Scheduler { package class VibedScheduler : Scheduler {
import core.sync.mutex; import core.sync.mutex;