[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Threading Thread.cs, 1
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Threading Thread.cs, 1.17, 1.18 |
Date: |
Sat, 23 Aug 2003 05:44:21 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Threading
In directory subversions:/tmp/cvs-serv16164/runtime/System/Threading
Modified Files:
Thread.cs
Log Message:
Support code for remoting contexts.
Index: Thread.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Threading/Thread.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** Thread.cs 24 Jul 2003 06:30:37 -0000 1.17
--- Thread.cs 23 Aug 2003 09:44:19 -0000 1.18
***************
*** 45,48 ****
--- 45,62 ----
private String name;
+ #if CONFIG_REMOTING
+
+ // The context for this thread.
+ private Context context;
+
+ #endif // CONFIG_REMOTING
+
+ #if CONFIG_POLICY_OBJECTS
+
+ // The security principal for this thread.
+ private IPrincipal principal;
+
+ #endif // CONFIG_POLICY_OBJECTS
+
#if !ECMA_COMPAT
// Flag that is set for threads in the thread pool.
***************
*** 391,399 ****
// Get the current domain identifier.
- [TODO]
public static int GetDomainID()
{
! // TODO
! return 0;
}
--- 405,411 ----
// Get the current domain identifier.
public static int GetDomainID()
{
! return GetDomain().domainID;
}
***************
*** 463,473 ****
// Get the remoting context for the current thread.
- [TODO]
public static Context CurrentContext
{
get
{
! // TODO
! return null;
}
}
--- 475,488 ----
// Get the remoting context for the current thread.
public static Context CurrentContext
{
get
{
! Thread thread = CurrentThread;
! if(thread.context == null)
! {
! thread.context =
Context.DefaultContext;
! }
! return thread.context;
}
}
***************
*** 491,505 ****
// Get or set the principal representing the thread's security context.
- [TODO]
public static IPrincipal CurrentPrincipal
{
get
{
! // TODO
! return null;
}
set
{
! // TODO
}
}
--- 506,518 ----
// Get or set the principal representing the thread's security context.
public static IPrincipal CurrentPrincipal
{
get
{
! return CurrentThread.principal;
}
set
{
! CurrentThread.principal = value;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Threading Thread.cs, 1.17, 1.18,
Rhys Weatherley <address@hidden> <=