concurrency.utils

Undocumented in source.

Public Imports

core.atomic
public import core.atomic : casWeak;

ugly ugly

Members

Enums

NoVoid
eponymoustemplate NoVoid(T)
Undocumented in source.

Functions

casWeak
auto casWeak(T* here, V1 ifThis, V2 writeThis)
Undocumented in source. Be warned that the author may not have intended to support it.
closure
auto closure(Fun fun, Args args)

This is a terrible workaround for closure bugs in D. When a local is used in a delegate D is supposed to move it to the heap. I haven't seen that happen in all cases so we have this manual workaround.

resetScheduler
void resetScheduler()

don't want vibe-d to overwrite the scheduler

spin_yield
void spin_yield()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Closure
struct Closure(Fun, Args...)

A manually constructed closure, aimed at shared

SharedGuard
struct SharedGuard(T)

Helper used in with() to easily access shared methods of a class

Meta