예제 #1
0
파일: chan.c 프로젝트: davekeck/eb_chan
// 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();
}
예제 #2
0
파일: Author.cpp 프로젝트: HSR-Stud/PMSwEng
//---------------------------------------------------------------------------
Author::Author(std::string const &firstname, std::string const &lastname)
: _firstname(firstname), _lastname(lastname)
{
   myWait( 200 );
   if (firstname.empty() || lastname.empty()) throw InvalidAuthor() ;
}
예제 #3
0
파일: Author.cpp 프로젝트: HSR-Stud/PMSwEng
//---------------------------------------------------------------------------
std::string  Author::getLastName()
{
   myWait( 200 );
   return _lastname;
}
예제 #4
0
파일: Author.cpp 프로젝트: HSR-Stud/PMSwEng
//---------------------------------------------------------------------------
std::string  Author::getFirstName()
{
   myWait( 200 );
   return _firstname;
}