Marek Safar
336382e2b1
[corlib] corcompare update
2014-08-25 13:12:42 +02:00
Jeffrey Stedfast
d3f190cf87
[corlib] minor code cleanup
2014-07-13 08:29:09 -04:00
Marek Safar
56cf1b8c2e
[corlib] Fixes CancellationTokenSource dispose race
2014-04-01 11:10:50 -07:00
Rodrigo Kumpera
8a0c516a7c
[corlib] Fix the mobile profile.
2014-03-07 18:00:17 -05:00
Marek Safar
4b4ddb66b3
[corlib] Improve flow of ExecutionContext (few tests taken from https://github.com/mono/mono/pull/864 ). Fixes #18121 and similar.
2014-03-06 19:54:06 +01:00
Marek Safar
9cbe9c372b
[corlib] Seal InternalThread
2014-03-04 10:17:30 +01:00
Marek Safar
dff86fe824
[corlib] Add missing api
2014-02-27 20:22:12 +01:00
Rodrigo Kumpera
cff7efdb32
[runtime] Use the system limit when enforcing a new thread stack size. Fixes #17908 .
2014-02-20 15:04:18 -05:00
Zoltan Varga
6d95657a21
[corlib] Remove the stack size limit check from CheckStackSize (), it should be possible to create larger stacks than the default. Fixes #17908 .
2014-02-20 12:12:31 -05:00
Marek Safar
d6c71e400b
[corlib] Cleanup ThreadLocal output formatting.
2014-02-06 18:08:36 +01:00
Marek Safar
661af380c3
[corlib] Fixes race in disposing CancellationTokenSource. Fixes #17256
2014-01-17 21:04:08 +01:00
Marek Safar
dce005f81f
[corlib] Thread.GetNamedDataSlot allocates slot on failure. Fixes #16788
2014-01-01 15:28:40 +01:00
Andrea Canciani
6395563467
Use LIFO policy for CancellationTokenSource
...
The .NET implementation of CancellationTokenSource invokes the
callbacks in the opposite order from that of the registration.
In order to mixamize compatibility, use the same order.
Fixes ReEntrantRegistrationTest, Cancel_Order, Cancel_ExceptionOrder
(in CancellationTokenSourceTest) and
https://bugzilla.xamarin.com/show_bug.cgi?id=16992
2013-12-31 22:01:46 +01:00
Harry Glinos
245e3c11fa
Implemented System.Threading.Monitor.IsEntered
2013-12-16 23:23:02 -06:00
Alex Rønne Petersen
114b545a2c
Merge pull request #810 from criteo/16267-SemaphoreSlim
...
[Bug 16267] SemaphoreSlim.Wait fix when no timeout
2013-11-19 21:02:33 -08:00
Rodrigo Kumpera
349cb638ff
[bcl] Implement CultureInfo.DefaultThreadCurrentUICulture.
2013-11-18 18:13:03 -05:00
Rodrigo Kumpera
5b8f9ad666
[bcl] Implement CultureInfo.DefaultThreadCurrentCulture.
...
The way DefaultThreadCurrentCulture is to be implemented is that its current value
will always be used by a thread that didn't set a value for its culture.
This means we can't cache DefaultThreadCurrentCulture value as it's allowed to
change and threads must always show the latest value.
2013-11-18 18:13:02 -05:00
Rodrigo Kumpera
e499793125
[bcl]Set the culture of the thread local NumberFormatter everytime.
...
the problem of changing the culture when a new value is set in the current thread
is that is doesn't work well with CultureInfo.DefaultThreadCurrentCulture.
2013-11-18 18:13:02 -05:00
Maxime Brugidou
f346baaf96
[Bug 16267] SemaphoreSlim.Wait fix when no timeout
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=16267
2013-11-15 18:10:16 +01:00
Marek Safar
5d96c0de63
Simplify work item registration for internal work items
2013-10-09 12:51:16 +02:00
Marek Safar
f410e545e2
Allow to queue multicast delegates in thread-pool
2013-10-09 11:26:34 +02:00
Rodrigo Kumpera
0acb81dc64
[bcl] Replace more long fields with int to make them CAS friendly on 32 bits systems.
2013-09-04 14:47:27 -04:00
Marek Safar
1fe24728bd
Optimize common path
2013-08-19 10:22:22 +02:00
Marek Safar
0c22492321
Remove NIE from SetWaitNotificationRequired. Fixes #13742
2013-08-07 20:02:03 +02:00
Alistair Leslie-Hughes
ccbc9e3a8f
Correct TrySetApartmentstate tests
...
License: This patch is under the MIT/X11 license.
2013-07-24 14:27:56 +10:00
Alistair Leslie-Hughes
070c3abecf
Allow TrySetApartmentState to set the same state multiple times.
...
License: This patch is under the MIT/X11 license.
2013-07-17 15:22:54 +10:00
Marek Safar
238785a3e3
Don't eat exception from timer handler (this is system timer not SWF timer)
2013-07-12 17:44:53 +02:00
Blewzman
21ca1f54bd
Fix SemaphoreSlim Constructor.
...
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=11598 .
2013-06-27 13:33:50 +02:00
Marek Safar
c48573e1c5
Add more argument checks to RegisterWaitForSingleObject
2013-05-25 10:23:12 +02:00
Martin Baulig
988f522b36
Put back unsupported EventWaitHandle and Mutex constructors.
2013-03-12 22:13:39 -04:00
Martin Baulig
2c8d10572e
Oops, fix the mobile build.
2013-03-12 21:42:27 -04:00
Martin Baulig
d54fac4349
Minor .NET 4.5 API fixes.
2013-03-12 21:15:56 -04:00
Martin Baulig
b53cdf8749
System.Threading.SemaphoreSlim.WaitAsync().
2013-03-12 21:15:56 -04:00
Martin Baulig
03bb7b498a
System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting().
2013-03-12 21:15:55 -04:00
Sebastien Pouliot
68ebec2787
Remove MonoTouch specific code that is now handled without reflection
2013-03-12 16:04:43 -04:00
Marek Safar
7c704df8ae
Move rarely used NamedDataSlot to its own type to cut few dependencies
2013-03-08 17:40:03 +01:00
Marek Safar
6643562a1e
Use generics list
2013-03-08 15:47:43 +01:00
Zoltan Varga
7c47e18e66
Remove an inexistent icall added by mistake by 0ff40ae70a.
2013-03-08 02:33:27 +01:00
Marek Safar
93e31cbc63
Ignore SynchronizationAttribute on MT
2013-03-07 16:34:23 +01:00
Zoltan Varga
0ff40ae70a
Implement Volatile.Read/Write<T> and Interlocked.MemoryBarrier ().
2013-03-07 02:41:46 +01:00
Zoltan Varga
3127206654
Add stubs for some NET 4.5 ThreadLocal ctors/methods.
2013-03-07 02:14:11 +01:00
Marek Safar
b26fc714dd
Manually remove code which is disabled but compiler cannot remove automatically.
2013-03-04 09:14:08 +01:00
Rodrigo Kumpera
07a220c61c
Mobile should not have the COM types set.
2013-03-01 18:58:35 -05:00
Marek Safar
bb05074a9f
Replace some hashtables with dictionaries
2013-02-27 22:58:32 +01: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
Rodrigo Kumpera
b96d05dac3
Kill the MOONLIGHT define in corlib.
2013-02-11 16:03:28 -05:00
Rodrigo Kumpera
f197c5c9cd
[corlib] Handle overflow correctly in Timer to avoid spinning. Fixes #8782
...
* Timer.cs: Very long timers can lead to timeout values that are
bigger than Int32.MaxValue, leading to a negative value and us
spinning.
2013-01-09 16:30:38 -05:00
Marek Safar
39c48d5e83
Remove NET_2_1 default (broken) context
2013-01-08 17:27:19 +01:00
Sebastien Pouliot
0f2995e95e
Exclude LogicalCallContext as the required remoting infrastucture not available on MonoTouch
2012-12-23 12:45:27 -05:00
Yann ROBIN
5c2e8d62de
fix code according to mono coding guidelines
2012-12-10 22:37:38 +01:00