Replaced tabs with spaces.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1132 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
965a15a5f0
commit
6b42268ba9
1 changed files with 110 additions and 106 deletions
|
@ -93,9 +93,11 @@ void LockableObject::DoSomething( void)
|
|||
void LockableObject::Print( unsigned int threadIndex )
|
||||
{
|
||||
assert( NULL != this );
|
||||
const char * message = ( threadIndex != m_value ) ? "Mismatch!" : "";
|
||||
::Loki::Printf( "Object: [%u] Thread: [%u] Value: [%u] %s\n" )
|
||||
( m_index )( threadIndex )( m_value )( message );
|
||||
const char * result = ( threadIndex != m_value ) ? "Mismatch!" : "";
|
||||
::std::string message;
|
||||
::Loki::SPrintf( message, "Object: [%u] Thread: [%u] Value: [%u] %s\n" )
|
||||
( m_index )( threadIndex )( m_value )( result );
|
||||
cout << message;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -199,6 +201,8 @@ public:
|
|||
void Print( unsigned int threadIndex );
|
||||
|
||||
private:
|
||||
/// Assignment operator is not implemented.
|
||||
LockableClass & operator = ( const LockableClass & );
|
||||
const unsigned int m_index;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue