Beispiel #1
0
        public Option <WorkSubmission <W> > Submit(W work)
        {
            var submission = new WorkSubmission <W>(Interlocked.Increment(ref lastid), work);

            enqueued.Enqueue(submission);
            return(submission);
        }
Beispiel #2
0
 public WorkDispatch(WorkSubmission <W> work)
 {
     this.work      = work;
     this.timestamp = now();
 }