[corert] Import System.Threading.ThreadPoolBoundHandle
[mono.git] / mcs / class / corlib / corert / Interop.MemAllocFree.cs
1
2 using System;
3
4 internal static partial class Interop
5 {
6     internal static IntPtr MemAlloc(UIntPtr sizeInBytes)
7     {
8         if (Environment.IsRunningOnWindows)
9             return Windows_MemAlloc(sizeInBytes);
10         else
11             return Unix_MemAlloc(sizeInBytes);
12     }
13
14     internal static void MemFree(IntPtr allocatedMemory)
15     {
16         if (Environment.IsRunningOnWindows)
17             Windows_MemFree(allocatedMemory);
18         else
19             Unix_MemFree(allocatedMemory);
20     }
21 }