Пример #1
0
    /*
     * Test that a thread can not be interrupted re-aquiring the monitor
     * after a Wait().
     */
    public void TestMonitorInterruptAfterWait()
    {
        if (!TestThread.IsThreadingSupported)
        {
            return;
        }
        MonitorInterruptAfterWait test = new MonitorInterruptAfterWait();
        String result = test.testMonitorInterruptAfterWait();

        if (result != null)
        {
            Assert(result, result == null);
        }
    }
Пример #2
0
	/*
	 * Test that a thread can not be interrupted re-aquiring the monitor
	 * after a Wait().
	 */
	public void TestMonitorInterruptAfterWait()
	{
		if (!TestThread.IsThreadingSupported)
			return;
		MonitorInterruptAfterWait test = new MonitorInterruptAfterWait();
		String result = test.testMonitorInterruptAfterWait();
		if (result != null)
	  		Assert(result, result == null);
	}