CPPUNIT_ASSERT_MESSAGE("#test comment#: use one thread to set the condition in order to release another thread.",
bRes);
CPPUNIT_ASSERT_MESSAGE("#test comment#: use one thread to set the condition in order to release another thread.",
!bRes1);
CPPUNIT_ASSERT_MESSAGE( "#test comment#: use one thread to set the condition in order to release another thread.",
bRes2);
}
CPPUNIT_ASSERT_MESSAGE("#test comment#: wait will cause a reset thread block, use set to release it.",
bRes);
CPPUNIT_ASSERT_MESSAGE("#test comment#: wait will cause a reset thread block, use set to release it.",
!bRes1);
CPPUNIT_ASSERT_MESSAGE("#test comment#: wait will cause a reset thread block, use set to release it.",
!bRes2);
}
CPPUNIT_ASSERT_EQUAL_MESSAGE( "#test comment#: test three types of wait.",
::osl::Condition::result_ok, r1 );
CPPUNIT_ASSERT_EQUAL_MESSAGE( "#test comment#: test three types of wait.",
::osl::Condition::result_ok, r2 );
CPPUNIT_ASSERT_EQUAL_MESSAGE( "#test comment#: test three types of wait.",
::osl::Condition::result_timeout, r3 );
}
CPPUNIT_ASSERT_MESSAGE("#test comment#: wait a condition after set/reset.",
!bRes );
CPPUNIT_ASSERT_MESSAGE("#test comment#: wait a condition after set/reset.",
bRes1 );
CPPUNIT_ASSERT_EQUAL_MESSAGE("#test comment#: wait a condition after set/reset.",
::osl::Condition::result_timeout, wRes );
CPPUNIT_ASSERT_EQUAL_MESSAGE("#test comment#: wait a condition after set/reset.",
::osl::Condition::result_ok, wRes1 );
}
CPPUNIT_ASSERT_MESSAGE("#test comment#: use threads to set/reset Condition and check it in main routine.",
bRes );
CPPUNIT_ASSERT_MESSAGE("#test comment#: use threads to set/reset Condition and check it in main routine.",
!bRes1 );
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.