Replaced call to system with call to cin.get.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1153 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
034ebb042c
commit
ac16c24fb5
1 changed files with 20 additions and 12 deletions
|
@ -425,18 +425,23 @@ void * Run( void * id )
|
||||||
|
|
||||||
void DoLockedPtrTest( void )
|
void DoLockedPtrTest( void )
|
||||||
{
|
{
|
||||||
cout << "Doing thread-locked pointer tests." << endl;
|
char ender;
|
||||||
|
|
||||||
SafeA::GetIt();
|
SafeA::GetIt();
|
||||||
UnsafeA::GetIt();
|
UnsafeA::GetIt();
|
||||||
::system( "pause" );
|
cout << "Doing thread-locked pointer tests." << endl;
|
||||||
|
cout << "Press <Enter> key to start test. " << endl;
|
||||||
|
cin.get( ender );
|
||||||
{
|
{
|
||||||
ThreadPool pool;
|
ThreadPool pool;
|
||||||
pool.Create( 5, RunLocked );
|
pool.Create( 5, RunLocked );
|
||||||
pool.Start();
|
pool.Start();
|
||||||
pool.Join();
|
pool.Join();
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "Doing thread-unsafe pointer tests." << endl;
|
cout << "Doing thread-unsafe pointer tests." << endl;
|
||||||
::system( "pause" );
|
cout << "Press <Enter> key to start test. " << endl;
|
||||||
|
cin.get( ender );
|
||||||
{
|
{
|
||||||
ThreadPool pool;
|
ThreadPool pool;
|
||||||
pool.Create( 5, Run );
|
pool.Create( 5, Run );
|
||||||
|
@ -451,16 +456,19 @@ void DoLockedPtrTest( void )
|
||||||
|
|
||||||
void DoLockedStorageTest( void )
|
void DoLockedStorageTest( void )
|
||||||
{
|
{
|
||||||
cout << "Doing LockedStorage tests." << endl;
|
char ender;
|
||||||
SelfLockedA::GetIt();
|
SelfLockedA::GetIt();
|
||||||
::system( "pause" );
|
cout << "Doing LockedStorage tests." << endl;
|
||||||
|
cout << "Press <Enter> key to start test. " << endl;
|
||||||
|
cin.get( ender );
|
||||||
{
|
{
|
||||||
ThreadPool pool;
|
ThreadPool pool;
|
||||||
pool.Create( 5, RunLockedStorage );
|
pool.Create( 5, RunLockedStorage );
|
||||||
pool.Start();
|
pool.Start();
|
||||||
pool.Join();
|
pool.Join();
|
||||||
}
|
}
|
||||||
::system( "pause" );
|
cout << "Press <Enter> key when ready. " << endl;
|
||||||
|
cin.get( ender );
|
||||||
SelfLockedA::Destroy();
|
SelfLockedA::Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue