2 #include "zypp/base/Logger.h"
3 #include "zypp/base/LogTools.h"
4 #include "zypp/base/Function.h"
5 #include "zypp/base/IOStream.h"
6 #include "zypp/base/InputStream.h"
7 #include "zypp/ProgressData.h"
9 #include "zypp/base/Random.h"
11 #include <boost/thread.hpp>
17 void action( int i_r )
19 unsigned sec = base::random( 3 );
21 MIL << "Action " << i_r << " (" << sec << ")" << endl;
25 int main( int argc, char * argv[] )
27 INT << "===[START]==========================================" << endl;
29 for ( unsigned i = 0; i < 5; ++i )
31 new boost::thread( bind( action, i ) );
34 INT << "===[END]============================================" << endl << endl;