Skip to content
Snippets Groups Projects
Commit ff07359b authored by Francois Keith's avatar Francois Keith
Browse files

More tests for test_mailbox

parent 7da5e9df
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,18 @@ sot::MailboxVector mailbox("mail");
void f( void )
{
ml::Vector vect(25);
ml::Vector vect2(25);
for( int i=0;;++i )
{
std::cout << " iter " << i << std::endl;
for( int j=0;j<25;++j ) vect(j) = j+i*10;
mailbox.post( vect );
//usleep( 1000*50 );
mailbox.getObject( vect2, 1 );
std::cout << vect2 << std::endl;
std::cout << " getClassName " << mailbox.getClassName() << std::endl;
std::cout << " getName " << mailbox.getName() << std::endl;
std::cout << " hasBeenUpdated " << mailbox.hasBeenUpdated() << std::endl;
std::cout << std::endl;
}
}
......@@ -62,6 +69,11 @@ int main( int argc,char** argv )
{
boost::thread th( f );
#ifdef WIN32
Sleep( 100 );
#else
usleep( 1000*100 );
#endif
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment