Add Yield method to Thread (4.0 profile).
authorJérémie Laval <jeremie.laval@gmail.com>
Wed, 28 Jul 2010 18:27:29 +0000 (20:27 +0200)
committerJérémie Laval <jeremie.laval@gmail.com>
Thu, 29 Jul 2010 09:49:55 +0000 (11:49 +0200)
commit0856ee39301337875d094a3f93097f17c5679783
tree5225e8558b71fa72f618cf289dfa233b0fdc9e64
parent48179958c5f63919e549c8e7bee365fbaf97c75a
Add Yield method to Thread (4.0 profile).

Yield is an internal call that simply calls wapi SwitchToThread function.
On !Windows system, this functions use POSIX sched_yield function.
mcs/class/corlib/System.Threading/Thread.cs
mono/metadata/icall-def.h
mono/metadata/threads-types.h
mono/metadata/threads.c