}
[TestFixture]
+ [Category ("MobileNotWorking")] // Bug #10267
public class SynchronizationAttributeTest
{
SincroRequiresNew sincob = new SincroRequiresNew ();
public void TestLocked1 ()
{
sincob.Lock (false);
+
Thread tr = new Thread (new ThreadStart (FirstSyncThread));
tr.Start ();
Thread.Sleep (200);
Assert.IsTrue (!otResult, "Concurrency detected in CallbackThread");
}
+ [Test]
+ public void TestSynchronizationReleasedOnMultipleAcquire ()
+ {
+
+ otResult = notreentrant.TestCallback ();
+
+ Thread tr = new Thread (new ThreadStart (CallbackThread));
+ tr.Start();
+
+ bool terminated = tr.Join(10000);
+ Assert.IsTrue(terminated, "Thread didn't get lock of context bound object.");
+
+ Assert.IsTrue (!otResult, "Concurrency detected in CallbackThread");
+ }
+
void CallbackThread ()
{
otResult = notreentrant.TestCallback ();
[Test]
[Category("NotDotNet")]
+ [Category ("MobileNotWorking")]
public void TestMonitorWait ()
{
Thread tr = new Thread (new ThreadStart (DoMonitorPulse));