Removed THREAD_IsWin16.

This commit is contained in:
Alexandre Julliard 2001-05-18 23:21:22 +00:00
parent 18ce388db9
commit a67e6486df
3 changed files with 4 additions and 13 deletions

View File

@ -127,7 +127,6 @@ typedef struct _TEB
/* scheduler/thread.c */
extern void THREAD_Init(void);
extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size );
extern BOOL THREAD_IsWin16( TEB *thdb );
extern TEB *THREAD_IdToTEB( DWORD id );
/* scheduler/sysdeps.c */

View File

@ -579,7 +579,7 @@ BOOL16 WINAPI WaitEvent16( HTASK16 hTask )
if (!hTask) hTask = GetCurrentTask();
pTask = TASK_GetPtr( hTask );
if ( !THREAD_IsWin16( NtCurrentTeb() ) )
if (pTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", NtCurrentTeb()->teb_sel);
return TRUE;
@ -618,7 +618,7 @@ void WINAPI PostEvent16( HTASK16 hTask )
if (!hTask) hTask = GetCurrentTask();
if (!(pTask = TASK_GetPtr( hTask ))) return;
if ( !THREAD_IsWin16( pTask->teb ) )
if (pTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", pTask->teb->teb_sel );
return;
@ -700,7 +700,7 @@ void WINAPI DirectedYield16( HTASK16 hTask )
{
TDB *pCurTask = TASK_GetCurrent();
if ( !THREAD_IsWin16( NtCurrentTeb() ) )
if (pCurTask->flags & TDBF_WIN32)
{
FIXME("called for Win32 thread (%04x)!\n", NtCurrentTeb()->teb_sel);
return;
@ -1043,7 +1043,7 @@ HANDLE WINAPI GetFastQueue16( void )
return 0;
}
}
Callout.InitThreadInput16( 0, THREAD_IsWin16(teb)? 4 : 5 );
Callout.InitThreadInput16( 0, (teb->tibflags & TEBF_WIN32) ? 5 : 4 );
if (!teb->queue)
FIXME("(): should initialize thread-local queue, expect failure!\n" );

View File

@ -37,14 +37,6 @@ static TEB initial_teb;
extern struct _PDB current_process;
/***********************************************************************
* THREAD_IsWin16
*/
BOOL THREAD_IsWin16( TEB *teb )
{
return !teb || !(teb->tibflags & TEBF_WIN32);
}
/***********************************************************************
* THREAD_IdToTEB
*