Commit Graph
16 Commits
Author SHA1 Message Date
Marek Safar 1383b1834d [corlib] Better recovery when tasks run on broken scheduler 2014-02-06 18:08:37 +01:00
Marek Safar 5d96c0de63 Simplify work item registration for internal work items 2013-10-09 12:51:16 +02:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Marek Safar 455b845157 Fix scheduling of inlined tasks. 2012-05-30 12:08:08 +01:00
Marek Safar 4a09ddbf31 Implement Task::LongRunning option 2012-04-11 09:53:43 +01:00
Marek Safar 0a66e607fc Remove never used Task::Execute parameter 2011-10-29 13:35:01 +01:00
Jérémie Laval 802b44f925 Use quicket methods to launch a Task on the threadpool 2011-09-25 18:11:27 +02:00
Koushik Dutta 98da8a2fc6 Fix bug where if a task is Start-ed with a specific scheduler,
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.

Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
2011-03-16 10:59:16 +01:00
Jérémie Laval 1bf1f268f2 Remove ctors in TpScheduler
This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.
2011-02-17 15:35:32 +00:00
Jérémie Laval dd79962df7 Make TryExecuteTaskInline a bit smarter 2011-02-17 15:35:02 +00:00
Jérémie Laval 5ede770a67 Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy 2011-02-17 15:34:11 +00:00
Jérémie Laval 71259e744e Adapt TpScheduler to the new API in TaskScheduler 2011-02-17 15:06:14 +00:00
Jérémie Laval 928550dff2 Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem 2011-02-17 15:06:14 +00:00
Jérémie Laval cdadec93c0 Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem 2011-02-17 15:06:13 +00:00
Jérémie Laval 430d01adef Try to execute task inline when they are ready to run and we wait on them with no timeout 2011-02-17 15:06:13 +00:00
Jérémie Laval 53e5b292ab Threadpool Task scheduler 2011-02-17 15:06:13 +00:00