Exemple #1
0
    /*
     * Test that a Monitor re-aquires the lock if interrupted during a
     * Wait().
     */
    public void TestMonitorInterruptDuringWait()
    {
        if (!TestThread.IsThreadingSupported)
        {
            return;
        }

        MonitorInterruptDuringWait test = new MonitorInterruptDuringWait();
        String result = test.testMonitorInterruptDuringWait();

        if (result != null)
        {
            Assert(result, result == null);
        }
    }
	/*
	 * Test that a Monitor re-aquires the lock if interrupted during a
	 * Wait().
	 */
	public void TestMonitorInterruptDuringWait()
	{
		if (!TestThread.IsThreadingSupported)
		{
			return;
		}

		MonitorInterruptDuringWait test = new MonitorInterruptDuringWait();
		String result = test.testMonitorInterruptDuringWait();
		if (result != null)
	  		Assert(result, result == null);
	}