Exemple #1
0
// run all tests with specified buffer size
void tests(int c) {
	Chan **ca = mkchan(c, 4);
	test1(ca[0]);
	test1(ca[1]);
	test1(ca[2]);
	test1(ca[3]);
	myWait();

	test2(c);
	myWait();

	test3(c);
	myWait();

	test4(c);
	myWait();
    
	test5(c);
	myWait();

	test6(c);
	myWait();
}
Exemple #2
0
//---------------------------------------------------------------------------
Author::Author(std::string const &firstname, std::string const &lastname)
: _firstname(firstname), _lastname(lastname)
{
   myWait( 200 );
   if (firstname.empty() || lastname.empty()) throw InvalidAuthor() ;
}
Exemple #3
0
//---------------------------------------------------------------------------
std::string  Author::getLastName()
{
   myWait( 200 );
   return _lastname;
}
Exemple #4
0
//---------------------------------------------------------------------------
std::string  Author::getFirstName()
{
   myWait( 200 );
   return _firstname;
}