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

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