Example #1
0
 /// <summary>
 /// Called by a ThreadShared resource when it is created. Notifies this padlock
 /// that it is responsible for controlling access to that Protected resource.
 /// </summary>
 /// <param name="protectedResource">
 /// The Protected object to associate with this padlock
 /// </param>
 internal void Register(BaseThreadShared protectedResource)
 {
     _resourcesProtectedByMe.Add(protectedResource);
 }
Example #2
0
		/// <summary>
		/// Called by a ThreadShared resource when it is created. Notifies this padlock
		/// that it is responsible for controlling access to that Protected resource.
		/// </summary>
		/// <param name="protectedResource">
		/// The Protected object to associate with this padlock
		/// </param>
		internal void Register(BaseThreadShared protectedResource)
		{
			_resourcesProtectedByMe.Add(protectedResource);
		}