FTK change. Added flag to prevent misaligned I/O operations to occur when a file has been opened in directio mode. This will allow us to find and fix sub-optimal I/O operations.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@671 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -266,6 +266,9 @@ public:
|
||||
|
||||
void FLMAPI cleanupThread( void);
|
||||
|
||||
void FLMAPI sleep(
|
||||
FLMUINT uiMilliseconds);
|
||||
|
||||
F_MUTEX m_hMutex;
|
||||
F_Thread * m_pPrev;
|
||||
F_Thread * m_pNext;
|
||||
@@ -776,6 +779,28 @@ void FLMAPI F_Thread::cleanupThread( void)
|
||||
m_exitRc = NE_FLM_OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Desc:
|
||||
****************************************************************************/
|
||||
void FLMAPI F_Thread::sleep(
|
||||
FLMUINT uiMilliseconds)
|
||||
{
|
||||
FLMUINT uiTimeToSleep;
|
||||
|
||||
if( !uiMilliseconds)
|
||||
{
|
||||
f_yieldCPU();
|
||||
return;
|
||||
}
|
||||
|
||||
while( uiMilliseconds && !m_bShutdown)
|
||||
{
|
||||
uiTimeToSleep = f_min( uiMilliseconds, 50);
|
||||
f_sleep( uiTimeToSleep);
|
||||
uiMilliseconds -= uiTimeToSleep;
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Desc: Set the thread's status
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user