Пример #1
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(Task task)
        {
#if DEBUG
            if (logger.IsEnabled(LogLevel.Trace)) logger.Trace(myId + " QueueTask Task Id={0}", task.Id);
#endif
            workerGroup.EnqueueTask(task);
        }
Пример #2
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(Task task)
        {
#if DEBUG
            if (logger.IsVerbose2)
            {
                logger.Verbose2(myId + " QueueTask Task Id={0}", task.Id);
            }
#endif
            workerGroup.EnqueueTask(task);
        }
Пример #3
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(Task task)
        {
#if DEBUG
            if (logger.IsEnabled(LogLevel.Trace))
            {
                logger.LogTrace("{TaskScheduler} QueueTask Task Id={TaskId}", myId, task.Id);
            }
#endif
            workerGroup.EnqueueTask(task);
        }
Пример #4
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(Task task)
        {
#if DEBUG
            if (logger.IsVerbose2)
            {
                logger.Verbose2(myId + " QueueTask Task Id={0}", task.Id);
            }
#endif
            var atask = new ActivationTask(task, IsReactive);
            workerGroup.EnqueueTask(atask);
        }
Пример #5
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(System.Threading.Tasks.Task task)
        {
#if DEBUG
            if (logger.IsEnabled(LogLevel.Trace))
            {
                logger.Trace(myId + " QueueTask Task Id={0}", task.Id);
            }
#endif

            workerGroup.EnqueueTask(task);
        }
Пример #6
0
        /// <summary>Queues a task to the scheduler.</summary>
        /// <param name="task">The task to be queued.</param>
        protected override void QueueTask(System.Threading.Tasks.Task task)
        {
#if DEBUG
            if (logger.IsEnabled(LogLevel.Trace))
            {
                logger.Trace(myId + " QueueTask Task Id={0}", task.Id);
            }
#endif

            /* Changes made for Nekara. The change is
             * to stmt "workerGroup.EnqueueTask(task);"
             * as the change mentioned below */

            Task _t1 = new Task();
            _t1.InnerTask = task;

            workerGroup.EnqueueTask(_t1);
        }