This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Implementation of a few algorithms around a `fetchNext` API. | |
*/ | |
import std.array : empty; | |
import std.traits : lvalueOf, rvalueOf; | |
import core.lifetime : move; | |
import std.stdio : File, writeln; | |
import std.typecons : Flag, Yes, No; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import core.thread; | |
import core.sync.semaphore; | |
import core.sync.mutex; | |
import core.atomic; | |
import std.stdio; | |
import std.typecons; | |
// 'extra' flag | |
shared bool initialized; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import core.thread; | |
import core.sync.semaphore; | |
import core.atomic; | |
import std.stdio; | |
import std.typecons; | |
shared uint initialized; | |
__gshared uint a; | |
__gshared uint b; |