[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections Hashtable
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections Hashtable.cs,1.6,1.7 |
Date: |
Sun, 02 Mar 2003 03:34:42 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections
In directory subversions:/tmp/cvs-serv2494/runtime/System/Collections
Modified Files:
Hashtable.cs
Log Message:
add the set; as well for the non-ECMA comparer property.
Index: Hashtable.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Collections/Hashtable.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Hashtable.cs 18 Jun 2002 02:04:58 -0000 1.6
--- Hashtable.cs 2 Mar 2003 08:34:39 -0000 1.7
***************
*** 916,919 ****
--- 916,923 ----
return comparer__;
}
+ set
+ {
+ comparer__ = value;
+ }
}
***************
*** 1140,1147 ****
get
{
! // We don't lock this because
it does not modify
! // the underlying hash table,
or access fields
! // that may be modified by
other threads.
! return table.comparer;
}
}
--- 1144,1160 ----
get
{
! // we do lock this because the
comparer might
! // be set by another thread
! lock(SyncRoot)
! {
! return table.comparer;
! }
! }
! set
! {
! lock(SyncRoot)
! {
! table.comparer = value;
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Collections Hashtable.cs,1.6,1.7,
Gopal.V <address@hidden> <=