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

        MonitorAbortDuringWait test = new MonitorAbortDuringWait();
        String result = test.testMonitorAbortDuringWait();

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

		MonitorAbortDuringWait test = new MonitorAbortDuringWait();
		String result = test.testMonitorAbortDuringWait();
		if (result != null)
	  		Assert(result, result == null);
	}