Example #1
0
 public cancelCtx(Context Context = default, sync.Mutex mu = default, channel <object> done = default, error err = default)
 {
     this.Context = Context;
     this.mu      = mu;
     this.done    = done;
     this.err     = err;
 }
 public resolverConfig(sync.Once initOnce = default, channel <object> ch = default, time.Time lastChecked = default, sync.RWMutex mu = default, ref ptr <dnsConfig> dnsConfig = default)
 {
     this.initOnce    = initOnce;
     this.ch          = ch;
     this.lastChecked = lastChecked;
     this.mu          = mu;
     this.dnsConfig   = dnsConfig;
 }
Example #3
0
        private static void fibgen(channel <long> ch)
        {
            for (long x = 0L; x < 10L; x++)
            {
                ch.Send(fib(x));
            }

            close(ch);
        }
Example #4
0
 public pipe(sync.Mutex wrMu = default, channel<slice<byte>> wrCh = default, channel<long> rdCh = default, sync.Once once = default, channel<object> done = default, onceError rerr = default, onceError werr = default)
 {
     this.wrMu = wrMu;
     this.wrCh = wrCh;
     this.rdCh = rdCh;
     this.once = once;
     this.done = done;
     this.rerr = rerr;
     this.werr = werr;
 }
Example #5
0
 public pipe(sync.Mutex wrMu = default, channel <slice <byte> > rdRx = default, channel <long> rdTx = default, channel <slice <byte> > wrTx = default, channel <long> wrRx = default, sync.Once once = default, channel <object> localDone = default, channel <object> remoteDone = default, pipeDeadline readDeadline = default, pipeDeadline writeDeadline = default)
 {
     this.wrMu          = wrMu;
     this.rdRx          = rdRx;
     this.rdTx          = rdTx;
     this.wrTx          = wrTx;
     this.wrRx          = wrRx;
     this.once          = once;
     this.localDone     = localDone;
     this.remoteDone    = remoteDone;
     this.readDeadline  = readDeadline;
     this.writeDeadline = writeDeadline;
 }
Example #6
0
            public ChannelTimer(long ticks, bool continuous)
            {
                m_notify = make_channel <Time>();
                m_delay  = (int)(ticks / TimeSpan.TicksPerMillisecond);

                m_pulse = () =>
                {
                    m_notify.Send(Now());

                    if (continuous)
                    {
                        m_pulse?.DelayAndExecute(m_delay);
                    }
                };
            }
Example #7
0
 public Timer(channel <Time> C = default, runtimeTimer r = default)
 {
     this.C = C;
     this.r = r;
 }
Example #8
0
 public netFD(ref ptr <bufferedPipe> r = default, ref ptr <bufferedPipe> w = default, channel <ptr <netFD> > incoming = default, sync.Mutex closedMu = default, bool closed = default, bool listener = default, long family = default, long sotype = default, @string net = default, Addr laddr = default, Addr raddr = default, poll.FD pfd = default, bool isConnected = default)
 {
     this.r           = r;
     this.w           = w;
     this.incoming    = incoming;
     this.closedMu    = closedMu;
     this.closed      = closed;
     this.listener    = listener;
     this.family      = family;
     this.sotype      = sotype;
     this.net         = net;
     this.laddr       = laddr;
     this.raddr       = raddr;
     this.pfd         = pfd;
     this.isConnected = isConnected;
 }
Example #9
0
 public pipeDeadline(sync.Mutex mu = default, ref ptr <time.Timer> timer = default, channel <object> cancel = default)
 {
     this.mu     = mu;
     this.timer  = timer;
     this.cancel = cancel;
 }
Example #10
0
 public testContext(ref ptr <matcher> match = default, time.Time deadline = default, sync.Mutex mu = default, channel <bool> startParallel = default, long running = default, long numWaiting = default, long maxParallel = default)
 {
     this.match         = match;
     this.deadline      = deadline;
     this.mu            = mu;
     this.startParallel = startParallel;
     this.running       = running;
     this.numWaiting    = numWaiting;
     this.maxParallel   = maxParallel;
 }
Example #11
0
 public common(sync.RWMutex mu = default, slice<byte> output = default, io.Writer w = default, bool ran = default, bool failed = default, bool skipped = default, bool done = default, Action cleanup = default, @string cleanupName = default, slice<System.UIntPtr> cleanupPc = default, bool chatty = default, bool bench = default, bool finished = default, int hasSub = default, long raceErrors = default, @string runner = default, ref ptr<common> parent = default, long level = default, slice<System.UIntPtr> creator = default, @string name = default, time.Time start = default, time.Duration duration = default, channel<bool> barrier = default, channel<bool> signal = default, slice<ptr<T>> sub = default, sync.Once tempDirOnce = default, @string tempDir = default, error tempDirErr = default, int tempDirSeq = default)
 {
     this.mu = mu;
     this.output = output;
     this.w = w;
     this.ran = ran;
     this.failed = failed;
     this.skipped = skipped;
     this.done = done;
     this.cleanup = cleanup;
     this.cleanupName = cleanupName;
     this.cleanupPc = cleanupPc;
     this.chatty = chatty;
     this.bench = bench;
     this.finished = finished;
     this.hasSub = hasSub;
     this.raceErrors = raceErrors;
     this.runner = runner;
     this.parent = parent;
     this.level = level;
     this.creator = creator;
     this.name = name;
     this.start = start;
     this.duration = duration;
     this.barrier = barrier;
     this.signal = signal;
     this.sub = sub;
     this.tempDirOnce = tempDirOnce;
     this.tempDir = tempDir;
     this.tempDirErr = tempDirErr;
     this.tempDirSeq = tempDirSeq;
 }
Example #12
0
 public work(ref ptr <distTest> dt = default, ref ptr <exec.Cmd> cmd = default, channel <bool> start = default, slice <byte> @out = default, error err = default, channel <bool> end = default)
 {
     this.dt    = dt;
     this.cmd   = cmd;
     this.start = start;
     this.@out  = @out;
     this.err   = err;
     this.end   = end;
 }
Example #13
0
 public Dirs(channel <Dir> scan = default, slice <Dir> hist = default, long offset = default)
 {
     this.scan   = scan;
     this.hist   = hist;
     this.offset = offset;
 }
Example #14
0
 public Dialer(time.Duration Timeout = default, time.Time Deadline = default, Addr LocalAddr = default, bool DualStack = default, time.Duration FallbackDelay = default, time.Duration KeepAlive = default, ref ptr <Resolver> Resolver = default, channel <object> Cancel = default, Func <@string, @string, syscall.RawConn, error> Control = default)
 {
     this.Timeout       = Timeout;
     this.Deadline      = Deadline;
     this.LocalAddr     = LocalAddr;
     this.DualStack     = DualStack;
     this.FallbackDelay = FallbackDelay;
     this.KeepAlive     = KeepAlive;
     this.Resolver      = Resolver;
     this.Cancel        = Cancel;
     this.Control       = Control;
 }
Example #15
0
 public Plugin(@string pluginpath = default, @string err = default, channel <object> loaded = default)
 {
     this.pluginpath = pluginpath;
     this.err        = err;
     this.loaded     = loaded;
 }