You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@@ -0,0 +1,40 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace System.Runtime.Remoting.Contexts {
|
||||
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
/* FIXME: Mono: this was public in mscorlib */
|
||||
internal class Context
|
||||
{
|
||||
#pragma warning disable 169, 414
|
||||
#region Sync with domain-internals.h
|
||||
int domain_id;
|
||||
int context_id;
|
||||
UIntPtr static_data; /* GC-tracked */
|
||||
UIntPtr data;
|
||||
#endregion
|
||||
#pragma warning restore 169, 414
|
||||
|
||||
[MethodImpl (MethodImplOptions.InternalCall)]
|
||||
extern static void RegisterContext (Context ctx);
|
||||
|
||||
[MethodImpl (MethodImplOptions.InternalCall)]
|
||||
extern static void ReleaseContext (Context ctx);
|
||||
|
||||
public Context ()
|
||||
{
|
||||
#if false
|
||||
domain_id = Thread.GetDomainID();
|
||||
context_id = Interlocked.Increment (ref global_count);
|
||||
|
||||
RegisterContext (this);
|
||||
#endif
|
||||
}
|
||||
|
||||
~Context ()
|
||||
{
|
||||
ReleaseContext (this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user