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.stdc.stdio; | |
import core.sys.windows.windows; | |
struct UserData { | |
int data; | |
} | |
extern (Windows) uint t1(void* data) { | |
auto tid = GetCurrentThreadId(); | |
auto dt = *(cast(UserData*)data); |
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
// WIP | |
import dvector; | |
import deimos.uv; | |
struct UVThread { | |
alias CBDelegate = void delegate(void*, void*) @nogc nothrow; | |
alias CBFunPtr = void function(void*, void*) @nogc nothrow; |
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.stdc.stdio; | |
import bindbc.nanovg; | |
import bindbc.glfw; | |
import bindbc.opengl; | |
@nogc nothrow: | |
int initNanovg(){ | |
version(BindNanovg_Static){ |
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
module app; | |
import std.conv; | |
import std.process; | |
import beamui; | |
mixin RegisterPlatforms; | |
int main() |
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 std.stdio; | |
import std.socket; | |
class TCPServer{ | |
string host; | |
ushort port; | |
@disable this(); |
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 std.stdio; | |
import std.concurrency; | |
import std.container.dlist; | |
import std.datetime; | |
import std.datetime.systime; | |
__gshared DList!Entry queue; | |
__gshared bool shouldRun = true; |
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 std.stdio; | |
import std.concurrency; | |
import core.thread; | |
void main() { | |
int k; | |
while(true){ | |
auto childTid = spawn(&spawnedFunc, thisTid); | |
Thread.sleep(10.msecs); | |
send(childTid, k); |
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
apd.d : | |
module app; | |
import std.stdio; | |
import std.experimental.logger: trace; | |
import gio.Application : GApplication = Application; | |
import gtk.Main; | |
import gtk.Application; |
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
module app; | |
import std.stdio; | |
import std.experimental.logger: trace; | |
import std.conv; | |
import gio.Application : GApplication = Application; | |
import gtk.Main; | |
import gtk.Application; |
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
/+ | |
0 | |
/ | \ | |
1 2 3 | |
/ \ / | \ | |
4 5 6 7 8 | |
address(0) = [] // root | |
address(1) = [0] // root.children[0] | |
address(2) = [1] // etc |
OlderNewer