예제 #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);
        }
    }
예제 #2
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);
	}