You've already forked linux-packaging-mono
Imported Upstream version 6.8.0.73
Former-commit-id: d18deab1b47cfd3ad8cba82b3f37d00eec2170af
This commit is contained in:
parent
bceda29824
commit
73ee7591e8
@@ -54,8 +54,10 @@ namespace System.Threading {
|
||||
IntPtr handle;
|
||||
IntPtr native_handle; // used only on Win32
|
||||
/* accessed only from unmanaged code */
|
||||
private IntPtr name;
|
||||
private int name_len;
|
||||
private IntPtr name_chars;
|
||||
private IntPtr name_generation;
|
||||
private int name_free;
|
||||
private int name_length;
|
||||
private ThreadState state;
|
||||
private object abort_exc;
|
||||
private int abort_state_handle;
|
||||
@@ -403,7 +405,13 @@ namespace System.Threading {
|
||||
private extern static string GetName_internal (InternalThread thread);
|
||||
|
||||
[MethodImplAttribute(MethodImplOptions.InternalCall)]
|
||||
private extern static void SetName_internal (InternalThread thread, String name);
|
||||
private static unsafe extern void SetName_icall (InternalThread thread, char *name, int nameLength);
|
||||
|
||||
private static unsafe void SetName_internal (InternalThread thread, String name)
|
||||
{
|
||||
fixed (char* fixed_name = name)
|
||||
SetName_icall (thread, fixed_name, name?.Length ?? 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* The thread name must be shared by appdomains, so it is stored in
|
||||
|
Reference in New Issue
Block a user