// 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(); }
//--------------------------------------------------------------------------- Author::Author(std::string const &firstname, std::string const &lastname) : _firstname(firstname), _lastname(lastname) { myWait( 200 ); if (firstname.empty() || lastname.empty()) throw InvalidAuthor() ; }
//--------------------------------------------------------------------------- std::string Author::getLastName() { myWait( 200 ); return _lastname; }
//--------------------------------------------------------------------------- std::string Author::getFirstName() { myWait( 200 ); return _firstname; }