Now calls functions that print directly to cout.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1161 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-21 23:10:53 +00:00
parent 62d74d47f8
commit 143a7f6d1c

View file

@ -177,7 +177,7 @@ void FormatTest( void )
string result; string result;
unsigned int i = 1; unsigned int i = 1;
signed short ss = 2; signed short ss = 2;
float f = 3.4; float f = 3.4F;
const char * message = " over here! "; const char * message = " over here! ";
const char * format = ""; const char * format = "";
@ -365,6 +365,20 @@ void RandomTest( unsigned int loopCount )
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void * DoLokiFPrintfLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
::Loki::FPrintf( "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex );
}
return 0;
}
// ----------------------------------------------------------------------------
void * DoLokiPrintfLoop( void * p ) void * DoLokiPrintfLoop( void * p )
{ {
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p ); const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
@ -379,13 +393,13 @@ void * DoLokiPrintfLoop( void * p )
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void * DoLokiFPrintfLoop( void * p ) void * DoStdOutLoop( void * p )
{ {
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p ); const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop ) for ( unsigned int loop = 0; loop < 10; ++loop )
{ {
::Loki::FPrintf( cout, "Loop: [%u] Thread: [%u]\n" )( loop )( threadIndex ); printf( "Loop: [%d] Thread: [%d]\n", loop, threadIndex );
} }
return 0; return 0;
@ -407,20 +421,6 @@ void * DoCoutLoop( void * p )
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
void * DoStdOutLoop( void * p )
{
const unsigned int threadIndex = reinterpret_cast< unsigned int >( p );
for ( unsigned int loop = 0; loop < 10; ++loop )
{
printf( "Loop: [%d] Thread: [%d]\n", loop, threadIndex );
}
return 0;
}
// ----------------------------------------------------------------------------
void AtomicTest( void ) void AtomicTest( void )
{ {
char ender; char ender;